News for hackers. Stuff that matters.
Re:The worst program I ever worked on by Gupie on Wednesday March 16, 2011 @06:56AM (#2331557)
I work with a guy, long time ago, who would take code already split into functions and refactor it into one big function. I am not joking here, actually happened.
Re:The worst program I ever worked on by iron_ball on Wednesday March 16, 2011 @09:46AM (#2331951)
I've seen that too. I don't think it was intentional -- the programmer simply didn't understand what the existing code structure was for, and "defactored" it.
Re:The worst program I ever worked on by gjm11 on Wednesday March 16, 2011 @10:27AM (#2332123)
Just think of all the function-call overhead he saved!
Re:The worst program I ever worked on by jpk on Wednesday March 16, 2011 @02:18PM (#2333193)
There are actually systems where this is a non-trivial gain. I've heard some of the Extream software (since acquired by HP) guys tell stories about having to inter-operate with ancient mainframes their customers refused to replace. In order to get throughput on some of the logic up to an acceptable level, they had to do just this. Amdahl's Law, a-gogo!
Re:The worst program I ever worked on by chadgeidel on Wednesday March 16, 2011 @11:10AM (#2332321)
Happened to me in a college course - fortunately I haven't seen it since. However the CURRENT codebase I'm working on is a whole other set of nightmares.

Bonus points for the fact that they don't let me fix it...