The daily WTF

Tuesday 7 September 2004

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]
Simon Willison 8:52 PM on 7 Sep 2004

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]
Jeff Darcy 7:05 AM on 8 Sep 2004

Excellent site. Thanks for the link, Ned.

[gravatar]
Chavhunter 5:45 AM on 1 Oct 2004

Good god. This site makes me want to cry.

Add a comment:

name
email
Ignore this:
not displayed and no spam.
Leave this empty:
www
not searched.
 
Name and either email or www are required.
Don't put anything here:
Leave this empty:
URLs auto-link and some tags are allowed: <a><b><i><p><br><pre>.