??? 06/16/06 01:11 Read: times |
#118382 - sheesh Responding to: ???'s previous message |
Erik Malund said:
I just stumbled over a piece of stupid code and came to think that it might be fun to collect samples of such. NOT "wrong" code, just code that works fully, but is stupid.
the one I just stumbled over (paraphrased): if (Ralph != 47) { Ralph = 47; } Looks like there was some debugging code that was removed, or a least greatly simplified. Still, one wonders why they bothered to leave in the unneccesary test. -a |