News for hackers. Stuff that matters.
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!