- Feature Articles
- 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
While leaving commented-out code in there is certainly part of this many-sided WTF, I wouldn't assume it's definitely "old code that has been replaced".
I suspect it's more likely something a developer put in, and commented out, while debugging some issue. It certainly doesn't reflect well on code-review practices that this was left in (let's face it, this feels like the kind of product that doesn't do code reviews, or probably any testing except maybe some fully-manual, happy-path-only testing) - but it could have been worse, at least it got checkef in/deployed with the commented-out version!
Edit Admin
100% possible, certainly.
Admin
If only there was some easy way to find whether an array includes a particular character.
Edit Admin
You can use all the fancy frameworks you want, but if you put bizarre HTML soup inside it then you'll end up with bizarre effects. The amazing thing is that no browser seems to have decided to delete one of the input boxes for daring to have the same ID as the other one, as a "malicious compliance" sort of thing.
Edit Admin
Funny, my router doesn't show stars, it shows " hunter2 you"