I was working on updating a backup script, and it had the same function written ten times, with no arguments, entirely for the purpose of calling it. No closures, just pointless repetition.
Also, about half the lines of the script was other very similar blocks of code that had been commented out.
You see, when you say something like this, it would never occur to me that people can do this.
When I hear about bad code, I'm thinking about code that is not scalable or unmaintainable. Or, it doesn't follow a proper design pattern or maybe trying to be too clever coding. Or, maybe have resource leaking. Somethings just would never cross my mind.
Browse http://thedailywtf.com/ occasionally. While most of their entries aren't particularly interesting, there are some that will really educate you about human stupidity. Another interesting site, but that doesn't update much is Computer Stupidities, http://www.rinkworks.com/stupid/ , though they focus more on user denseness than developer screwups.
Also, about half the lines of the script was other very similar blocks of code that had been commented out.