Re:What's wrong with this code, really?
by jinushaun on Friday September 16, 2011 @08:31AM
(#3004168)
The code in question:
Nice analysis into the thinking that went into creating such bad code. Took me a while to even see the i-- at the bottom.
[ Parent
| on HN ]
Re:What's wrong with this code, really?
by kyleburton on Friday September 16, 2011 @08:54AM
(#3004231)
One of the advantages I find in pair-programming is that the 'navigator' (the one who's not typing) will often catch this kind of thing as it is happening. "Hey, that's just a while loop, or better yet just use `Clear`". There are other (greater) advantages to pairing, but this example is something we typically avoid before it gets committed.