Most programmers will have had the experience of debugging/fixing someone else’s code. Sometimes that ‘someone else’s code’ is so obfuscated it’s bad enough trying to understand what it’s doing.
What’s the worst (most obfuscated) code you’ve had to debug/fix?
If you didn’t throw it away and recode it from scratch, well why didn’t you?
nested if, while, like:
cut-and-paste oriented programming
I was tempted to throw away and recode… but, after 3 days of hard debugging, I’ve added the magic if 🙂