Wednesday, April 22, 2009

Code Comments

I've just had this sent to me by Stu.  More of these comments should be put in code to cheer peoples day up when their fixing it.

stop(); // Hammertime!
This particularly amuses me.  If you don't code you won't get most of them.

And here's a good one to go with it on coding standards.  The hardest one I've had to deal with is one contract where all 'if' statements had to be written what I consider backwards i.e. if condition = variable or if ('John' == nameVar) {statements...}.  This messed with my head for a long time.

No comments:

Post a Comment