Too Long; Didn't Read
7 Ways to Maintain and Write Better Code: How to write better code and maintain it. Avoid global variables and loops are a mess and can prove problematic when your application grows to millions of lines of code. Use meaningful names for variable names, function/method names, and class names. Use a coding standard for naming conventions, formatting, etc. Use automated build tools like Ant and Phing. Refractor is the eight habit of highly effective developers. You should be refactoring your code on a daily basis.