Yesterday’s Simple Programmer post has a lot of good ideas in it. If you’re in a rush I give you the rules themselves below. Read his post for the details.
- Technology is how you get to the solution, it is not THE solution
- Clever is the enemy of clear
- Only write code if you absolutely have to
- Comments are mostly evil
- Always know what your code is supposed to do before you start writing it
- Test your sh—code before you ship it
- Learn something new every day
- Writing code is fun
- You can’t know it all
- Best practices are context dependent
- Always strive to simplify
He correctly predicted getting a lot of comment grief on number 4. I personally agree with him. Developers tend to over-use/mis-use comments.
#7 is a lot like yesterday’s post One-a-Day Keeps Mediocrity at Bay.