Wednesday, June 6, 2007

Six ways to write more comprehensible code

As a developer, time is your most valuable resource. These six tips on how to write maintainable code are guaranteed to save you time and frustration: one minute spent writing comments can save you an hour of anguish.

Tip 1: Comment like a smart person.
Tip 2: Use #define a lot. No, a LOT.
Tip 3: Don't use variable names that will mock you.
Tip 4: Do error checking. You make errors. Yes, you.
Tip 5: "Premature optimization is the root of all evil."
Tip 6: Don't be too clever by half.

read more

3 comments:

Anonymous said...

Thank you, I have recently been searching for information about this topic for ages and yours is the best I have discovered so far.

Anonymous said...

found your site on del.icio.us today and really liked it.. i bookmarked it and will be back to check it out some more later

Anonymous said...

If you could e-mail me with a few suggestions on just how you made your blog look this excellent, I would be grateful.