View Single Post
Old Jul 25th, 2006, 11:21 PM   #8
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Location: Waterloo, Ontario
Posts: 1,886
Rep Power: 5 Sane will become famous soon enough
Send a message via MSN to Sane
Well, it's usually a poor choice to blatantly disregard simple optimization... especially when all it calls for is swapping a calculation for a variable.

I know it barely makes any difference at all, but it would if say, w-1, was instead a function call. I realise in that case, you would have done it differently, but it's always best to be consistent with your style and make good habits.

Although I am being hypocritical, since, in respect to commenting ... I would never be consistent and comment every single program I make.
Sane is offline   Reply With Quote