- 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
wow
Admin
Admin
blame the submitter, not the poorly-designed viewer you chose to use. WTF?
Admin
That was pretty good. Too bad you weren't first, though.
Admin
What does the + @ do in JavaScript? Robust parameters or something?
Admin
sheeesh. not only is the first one an "are you sure", it's a completely useless if statement. I can understand making a seperate function for it because it's clearer, and takes less typeing if you need to call it multiple times, but why bother with an if statement in the first place if you are going to return the table if it's null or not. Just do a
return document.getElementById('" + gridPanelTable.ClientID + @"')
Admin
The last example is foolish. It looks the programmer was just trying to remind themselves to add code to these sections later. How is that bad?
Admin
file_exists() will be cached, so even if you deleted the file in middle of the check, it won't check it's real file existance...
Admin
No no no! You're all missing the point. This is part of a threaded system, and the multiple checks take long enough that the requested resource exists by the second time around! </sarcasm>
Admin
And why does it bother you if we submit something with the same title as a previous article?
Admin
Who cares? Maybe just do what he asks to increase your chances of getting your submission read... or don't and get your submission overlooked.
shrug
Admin
There has to be a problem in the transcription of the JavaScript, because what I'm seeing should always return null (given a rational analysis of the argument to the getElementById call).
The problem is that
queries for an element called
" + gridPanelTable.ClientID + @"
and I refuse to believe that someplace in the HTML you'd find
Admin
Admin
In the cute prose header for this article, the author refers to "pi-calculus". Surely, this is the wrong greek letter, and he meant "lambda-calculus".
Admin
With quality CodeSOTDs like "OMG LOLZ LOOK HE WROTE THE IF WRONG ROFFLZ!" I can certainly see why he would skip submissions based on their title.
Admin
This isn't a What The Fuck. A What The Fuck, is some dumbass claiming that "doubleyou-tee-eff" was offensive to his senile grandma, and that "Worse Than Failure" makes a lick of fucking sense.
Admin
I doubt he would mention it if it was a problem that was happening every now and then coincidentally.
Coming up with a name for your submission that hasn't been used in a previous article (even if you didn't have a list of previous articles) would be a horrible plot for Mission Impossible 4... Tom Cruise is probably crazy enough to take it tho...
Admin
I think the first sample is actually a C# string in an ASP.NET page with the initial @" missing.
Admin
Say what?
Don't talk out of your ass please. (the comments page is worthless)
Admin
Because I've got it cached as being done already.
Admin
Tomorrow, we're going to get a dozen emails with titles like "Deterministic Programming" and "Deterministic Programming Too!" where the submission is essentially one of the code snippets in today's article. There is a 50/50 that some of the text will be a paraphrase of something I've already written. The worse my prose is, the higher the chances.
Admin
Well gee, numbnuts -- seems there's a What The Fuck in your logic. How the shit is someone supposed to know if a title's been taken? Do a search every goddamned time?
Admin
Hmm, the URL of this article is http://worsethanfailure.com/Articles/Deterministic-Programming.aspx
So if (speaking purely hypothetically) I wanted to submit one titled "headshit is a brainless prat", perhaps I could type http://worsethanfailure.com/Articles/Headshit-Is-A-Brainless-Prat.aspx into my address bar?
Wow, that must have taken me almost 20 seconds. I better go have a lie down.
Admin
Bravo!
Wow, 20 seconds... headshit types slow...
Admin
huh? It took you almost 20 seconds to do something that has nothing to do with my point? score!
Admin
You had a point?!
Irish Accent Brilliant!
Admin
The third example is a new way to write provably correct software. No code, no bugs.
Admin
Well, did the programmer remember to add code to these sections?
I find that putting
is a lot more effective.
You'll be surprised to discover how many people grep your code for the keyword "beer"...
Admin
I'd bet in all of these cases that originally the code had a different conditional for one of the cases (and code in the braces in the third). Then things got munged (or removed) during the debug process and never cleaned up.
That's really lousy programming, but not really WTF-class, IMHO. I doubt the original coder was trying for the "are you sure?" effect or the "condition branches that have no effect" effect, which is what the into implies.
Admin
Especially in the BatchProcessor.ProcessBatch() case, this might be an attempt to avoid changing lines (and thus being the one people go to when that code has problems). In fact, if you do an annotate of only the latest version, whoever took code out of those branches doesn't show up at all. Brillant!
Admin
WTF has Firfox to do with you Mail allachments? DO you know the difference between a mail client and a browser? (Don't tell me about wembailers. Imagining Alex being such a noob that he uses webmailers for his submissions either lets eider me burst out in tears or my head explode to paint the walls. ;)
Admin
seriously, get over it already.
Admin
Really, moron.
Admin
I don't know what an allachment is but maybe you've heard of Gmail.
Admin
Hmm...red title bar, by Derrick Pallas...you know, I do believe you're right. It's NOT a WTF. It's a CSOD, which you'd realize if you were here for any reason other than to complain about a minor name change to the site.
Admin
Typically you see code like this mostly because of bad integrations using source control. The auto-merge function isn't all that smart and bad checkin policy could cause things like this to be missed
Admin
These likely aren't WTFs but are just the result of someone doing a copy paste and forgetting to change what he pasted. I 've done this many times, but I usually find it before checking the code in.
Admin
The moral of the story is either (a) Don't assume people read these from the front page, or (b) Maybe the article page titles should be displayed in the same color as they appear on the front page, depending on whether you're a reader or a site admin.
davidh
Admin
Here's how that javascript really went down.
Admin
Admin
Admin
Perhaps Alex values his operating system and mail archive. Webmail is actually a very effective means of pre-filtering mail before it enters your local machine. Given that AV software is wont to do brilliant favors for the user, such as quarantining an entire mail file because one message happens to have a virus attachment, this can save a lot of time and trouble.
I've been doing this for about 18 months now, and I just wish I had started years earlier.
Admin
Admin
People aren't going to jump through hoops and adhere to multiple arbitrary criteria in a fairly small, informal community. If Alex starts discarding stuff, that's his prerogative, but don't expect people to care.
Admin
Thanks... that's exactly why my post started with "Who cares?"
Admin
The WTF is that, on the submission page, it's written "I do, however, read every message."
Admin
Code like this could be simplified with a properly designed language. I've long argued for a Really Equivalent operator. I suggest ===. That of course also allows for the !== operator, which means "equivalent but not really equivalent," not to be confused with !!=, which means "really definitely not equivalent." --Rank
Admin
I don't know... Why does it bother me when people ask stupid questions?
Admin
Yes, but for the one's with title's he's seen before he prints the out in braille and then reads with his hands. He still doesn't look at it though. ;}
I would like to say that the somewhat hostile tone and rude language that some people insist on using is really annoying. There is no need to be insulting, except sometimes as a joke. I wouldn't mind at all for such posts to be removed. It's not that I care about the language used but more the hostile intent.
Admin
"Please stop doing that too."
Are you talking to submitters or Firefox?