ibm.com — 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.
May 30, 2007 View in Crawl 4
mandel15May 31, 2007
Much better:#define DEBUGvoid change_score(short num_points){ #if DEBUG assert(num_points > 0); #endif score += num_points; make_sparkles_on_score();}That way u can get rid of them in the final version, unless the app doesn't have to be fast and can do the assertions....
magnimacMay 31, 2007
I am not much good with C++, I use more Java and Visual basic. I would like to mention that much of what's in the article here is good advice for programming in any language. I would also like to thank the submitter and all of you who have added to this article by way of thoughtful comments and questions. Review doesn't hurt, and good coding habits can be hard to achieve for even the best programmers.
time4teaMay 31, 2007
the article was complete rubbish.inaccurate, outdated, outmoded, obviousjust cos you can blog any old stream of consciousness crap doesn't mean you should.hungarian notation?
dgendreauJun 2, 2007
@gyrotech,Hungarian doesnt bother me to a point, but inconsistency would drive me nuts and did until I found a decent refactoring plugin for Visual Studio.
samjiJun 27, 2007
Nice tips.