This is a quick review of some important parts of the book “Clean Code: A Handbook of Agile Software Craftsmanship” by Robert C. Martin. Advantages of clean code Better use of your time: Code is read a lot, you forget things, so clean code helps you quickly grasp what the code did. Easier onboarding: Getting co-workers up to speed is much easier if the code base is clean. Easier debugging: Others can help you out, since the code is understandable, even non-programmers like a project manager might be able to spot things.
Rewriting URLs using mod_rewrite Every so often as a web developer, you might have to write a redirect of some URLs to some other ones to an .htaccess file. If you remember these tips here, you will probably have most of the stuff you need: Redirect a specific URL to another URL Redirect 301 "/old-page.html" "/new-page.html" 301 here means it is a permanent redirect. Over time Google and other search engines will then replace the old URL with the new one in their index.
Follow me on twitter! Follow @mpaepper