The daily WTF

Tuesday 7 September 2004This is 20 years old. Be careful.

The Daily WTF is a snarky collection of those pearls of bad programming we all encounter from time to time. They’ve got one per day, covering a broad range of real-life abominations against the coding commandments. My favorite so far? There are so many tasty delights, it’s hard to know where to start. But this approach to exception handling hits home:

try {
    //...
}
catch (Exception e) {
    e = e;
}

Apparently an empty catch was warning about the unused e variable, so...!

Comments

[gravatar]
The funniest thing about that site is that no matter how horrible the example, someone is bound to show up in the comments arguing that it really isn't that bad.
[gravatar]
Excellent site. Thanks for the link, Ned.
[gravatar]
Good god. This site makes me want to cry.

Add a comment:

Ignore this:
Leave this empty:
Name is required. Either email or web are required. Email won't be displayed and I won't spam you. Your web site won't be indexed by search engines.
Don't put anything here:
Leave this empty:
Comment text is Markdown.