Monday, June 29, 2009

A rule of thumb when writing comments in code


When you're writing code, ask yourself if someone else could come in behind you and understand it. If not, refactor the code and/or add comments to explain what you're doing.

No comments:

Post a Comment