Ask HN: What is the worst code you have seen at work?
I wrote a simple game for CS project last year, and it was pretty bad. All logic was opaque, and there were tonnes of global variables!
If (InputStr[$i] == 'a') InputStr[$i] = 'A'; If (InputStr[$i] == 'b') InputStr[$i] = 'B'; .. .. If (InputStr[$i] == 'z') InputStr[$i] = 'Z';
Written by someone with over 5 years 'experience'.
- Suramya