(Commercial programmer here, working for large IT company)
Worst I've seen was some Java code in a printing-related class which defined two separate "rounding" functions. Each function used a bunch of ifs, type casts, and String formatting methods. They turned out to be exactly equivalent to (int) Math.floor(x) and (int) Math.ceil(x). But probably 50 times slower.
Second worst, an intern once added a new field to one of the main UI components of our application. It was a boolean field called simply theBool. Had something to do with animation and went through some fairly complex state changes, but I never managed to figure out exactly what it did. theBool. Thankfully the project died soon after.
Name:
Anonymous2013-02-20 22:07
>>21
Hungarian notation was invented by the Communists to hold back the progress of computing in the Free World.
Name:
Anonymous2013-02-20 22:25
>>21
Those who do not learn from history are doomed to reimplement it poorly.