-
Feature Articles
- Most Recent Articles
- Flushed Out
- The Hot Fix
- The Roadmap
- Let's Be Facebook!
- Whales Ahoy!
- Three Digit Acronyms
- The Pride Goeth
- Empty Pockets
- CodeSOD
- Error'd
-
Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Hmh, so the only issue here is that the boolean value is being negated. Which is clearly a bug, but not a WTF. So what?
Admin
Bug + in production + due to bad logic - reasonable code review = WTF
Admin
Even worse is that FILE_NOT_FOUND was not even considered...
Admin
I'm assuming the two
&;tokens in there are just artifacts of borked HTML encoding and not part of the original code sample.Admin
I guess he wrote
&;where he meant just&.Admin
"No, I didn't write a unit test. It's such a simple function it doesn't need one."
Narrator: He did, indeed, need one.
Admin
God I hate Ruby