- 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
Do your sarcasm detectors work? Some so-called sarcastic remarks are actually straight responses, and vice versa. It is hard to tell when facial expressions, tone of voice, pauses in voices, and other factors are not available. If you think you have it down totally, you are probably fooling yourself. I gave up on being 100% sure a long time ago.
Sincerely,
Gene Wirchenko
Admin
What a great observation. I mean it. Really.
With the most wamest of regards, not sarcastically,
Me.
Admin
We had a pow-wow regarding pronunciation of acronyms a couple weeks ago, which is why I posted that.
Admin
Actually, I'm not sure where sarcasm comes in here. However, some people could use a de-hyper-sensitzer around here. I thought just hanging around here would work but apparently not.
Admin
I would be rich because there is a big demand for them, here. Not that I know exactly how to make perfect detectors.
But that was funny when you asked for his classification, when the (F) option was specially designed for him. :)
Admin
<FONT face="Courier New" size=2>parse error: line 1</FONT>
<FONT face="Courier New" size=2>sincerely,</FONT>
<FONT face="Courier New" size=2>the compiler</FONT>
Admin
<FONT face="Courier New" size=2>i am the defender of the faith. bring me cabbage as sacrifice.</FONT>
Admin
Well it has to be that way. After all, you never know when you might want to change the letZero fuction from using the value of 'z' to 'Z'. And that is just one of the letFOO fuctions, what if the value of backslash changes? What if you want to do more action in your let fuction letSpace might look like this you know:
See how much easier it was to make this change? Brillant
Admin
I hear there is a job opening at the local McDonalds where this guy lives... He either escaped there, or should definately go there to apply....
Admin
Uh, whats this sex thing you speak of?
You forgot one:
H) The Justifier: They find enjoy finding some excuse why the code must be done this way, and the code the the Optimizer came up with is wrong. The idea that most of us do not deal with such thing as 3+ state bits, processors with a list of instrucitons that work, and other relics of the cold war KGB's attempts to confuse the CIA are not of interst to these people. These people are the best part of the daily WTF and should be encoueraged. (you can guess which one I am today)
Admin
I think I'll have to get some tonight to get over that.
Admin
Y'know what I think is great? That someone posted their suggestion for a "G" entry to the list, and Hank Miller was smart enough to suggest this new option as "H". It's people like you that make this board fun to read.
Sarcasmo-meter 3000 rating for this message: 0.0 - No sarcasm detected.
Admin
Bah! Busted already. Does this thing have a warranty? Ah, throw it in the closet with the rest of them.
Sincerely,
Gene Wirchenko
Admin
What. The. Fuck.
How can you be so stupid? Like really. This just defies stupidity. Did he write a tool in some other langauge to do those Let*Equal, because it would be ironic if he had something like
printf("Let%sEqual (...)\n{\tlcrCurrent += %d", szCharName, cChar);
Somewhere in it.
Admin
To be honest, I noticed that too - and .. I did read through the comments >:)
I can't really class myself as anyone of those, I just read the code and reply what I thought after reading the comments (and do you guys have to post so much worthless shit that you have to scroll by? >:\ )
Admin
I had a couple of suggestions as well. And just so I can make this board fun for you:
I) Illiterate Literate: These posters appear to be illiterate and will post comments that have already been made. Usually posting anonymously, they appear to be trying to show their intellect while instead showing themselves to be completely retarded.
J) Never-Happy: These posters will keep adding on to lists made by a poster in their ever-continuing attempts to improve it. They are generally pathetic, shallow individuals who believe that other people care what they think.
Admin
How about:
K) Master of the Tangential. This person does little except complain about the forum software ("The real WTF is this forum...") and how they can't get a slice of pizza to display.
Admin
The real WTF is why the slice of pizza isn't on my plate.
Admin
I'm amazed. Your post actually counts as meta-humour since, with a little stretching of the definitions, your own post fits happily into category F). Not that I don't completely agree with you, but still, sweet.
Admin
Although that is a possibility, each function is slightly different. There is some code in each procedure which double checks to make sure it is the right character.
The rest of the code is also full of priceless gems.
Be glad you don't have to re-write it
Admin
I woulda liked to see one of the LetFoo functions, because as is, I don't even have a clue what this function is supposed to do.
Admin
Note that my attempts at such acronyms are satire. I much loath the absurdity of IT buzzword/acronyms. AJAX is one of the most painful examples of these. If killing its creator would undo the word, I swear, I would do it ten times over.
Admin
Admin
This is pretty cool. Though the One Liners (C), can be annoying, I totally understand. It's an unavoidable reaction that simply *must* be communicated due to the extremeness of a condition. Kinda like the male's natural reflex to seeing the incredibly attractive, low-cut female: Daaaaammmnn!
Admin
no, wait, you are the Troll-type, since I need to check that option in order to see your post [H]
Admin
That's the one I was thinking of, myself.
And that code looks sort of like what an Excel macro would create. Except in C.
Admin
You know, this could actually be applied to all internet forums, not just dailywtf. It should be reworked to be more general, with specific amendments tailored for this site.
<code>
if (isTrue(you_dont_believe_me))
ICanShowYouDocumentsAndWhitePapers( to_prove_my_point );
else
keepYourPostsOnTopic();
</code>
Frost Piss?
Admin
Challenge: come up with the shortest possible post that meets ALL of the post-whore criteria A) through F)
Admin
IIRC, MySQL insists on being pronounced "My Ess Cue Ell."
Anyway, the OP makes me feel like a motherless child. Especially since each of the Let* functions probably contains an IsEqual function:
if (arg1 == '@' && arg2 == '@')
return TRUE;
if (arg1 == '@' && arg2 == 'A')
return FALSE;
if (arg1 == '@' && arg2 == 'B')
return FALSE;
.
.
.
--Chris
Admin
This is worthy of a WTF submission of its own. Somehow, he took the basic approach I had feared he took (see my post for 9:06pm yesterday), and increased the WTF density! Extra points for the sheer diversity of WTFs.
I don't get the last line. Is 123 meant to represent the integer value of 'foo' which is assigned right back to the string element it came from? Are you telling us the whole heap of code does nothing?
I think we are in the presence of a master.
--RA
Admin
The good people who offer us MySQL tell us:
" The official way to pronounce 'MySQL' is 'My Ess Que Ell' (not 'my sequel'), but we don't mind if you pronounce it as 'my sequel' or in some other localized way."
Sounds to me like there is an official acknowledgement that "sequel" is, at least, and acceptable way to pronounce SQL -- if a product's producers are willing to allow an alternative pronunciation for a trademarked name in order to accomodate existing usage, it's probably a sign that the usage is pervasive.
Admin
This is craptacular.
I've never seen such awful loop control.
He's heard of "if" but not "else"?
Doesn't this buffer object have character indexing?
If he's dealing with chars, why have a CurChar and CurCharvalue elements?
It just looks completely amateurish.
Admin
no no no, you've got it all wrong. with THAT code, the function would stop as soon as it passed one of those conditions. we can't have that!
int x = 0;
bool returnValue;
if (arg1 == '@' && arg2 == '@')
x = x + 1;
if (arg1 == '@' && arg2 == 'A')
x = x + 0;
if (arg1 == '@' && arg2 == 'B')
x = x + 0;
...
if (x == 0)
returnValue = false;
if (x > 0)
returnValue = true;
return returnValue;
you gotta let these compilers know who's boss.
Admin
Well...this is obvious. It's core level code for the next generation search engine.
Admin
He used to work for me. I can give you his name if you'd like.
I am not making this up.
Admin
Looks like a failed attempt at creating a finite-state-machine...
I wonder if this programmer has ever heard of the term "look-up table" if indeed he was trying to create an FSA.
Admin
Probably something like that, but you've got to admire the fact that only the original ASCII alphabet gets treated. Anything outside it is simply skipped. Let's hope this piece of code was not used in some product intended for other language markets. Can you imagine the despair of the users in that case?
Perhaps the response would be to fill up the table with all Unicode points until 0xFFFF (just leaving out the Koreans and the Chinese, but still serving those that write in Old Italian and Linear B).
</char></charfunc>
Admin
What are you talking about, FF8pc was a bitch to install and never ran at more than 18 fps. ;_;
Wait, you mean Google didn't invent a way to use javascript and xml to clean your sink? I've been had! Here I was hoping it would usher in a new age of dynamic, self-modifying bathroom tile. >(
Admin
I agree with Gene about the acronyms, stop it now please for fucks sake.
Sincerely,
Raoul
Admin
I can't make any sense of that LetFoo at all. Hmm. We only call it when currentchar is foo. So we set j to 1 immediately. Then we set... CurrentCharvalue to the value of the character that it already has.
Am I misreading this? Furthermore, wouldn't this be an infinite loop if you ever for any reason called it with a buffer that didn't contain any Foo, and won't it just skip past any non-Foo it sees, if you call it with the wrong index?
I'm really not understanding this. I am not even sure it does anything at all.
Admin
Brillant! Although at first glance this appears wasteful, in fact it is necessary for compatability with pre ANSI X3.4-1986 machines. Because of this problem, almost all european PC's using ISO 646 (1972) are incompatible with modern PC's in almost all programs, the only exceptions being this and MLCAD (1999). However it could be improved using a switch statement, as follows:
SELECT CASE lcrBuffer.CurrentChar
CASE ELSE:
IF lcrBuffer.CurrentChar = "&" THEN GOSUB letAmpers
IF lcrBuffer.CurrentChar = "@" THEN GOSUB letAt
.....
END SELECT
First A-F challenge attempting post! (<--- oneline part)
Btw why are you guys so hard on all the noobs who post? I know it isTrue(that they make a lot of lame jokes) and stuff but can't we all just get along? You guys are forum-nazis. I hate idiots who insult people and retards who recursively insult themselves by listing themselves as a category they hate.
Admin
If not even the great and magnificent Gene Wirchenko can detect sarcasm accurately, what hope does the average man have?
Sincerely,
Richard Nixon
Admin
That's one way to prevent timing attacks!
Admin
Captain Obvious saves the day! Thank you, Captain Obvious!
Congrats for your working sarcasm detector.
Admin
You are being sarcastic, right?
Admin
Back on topic
I have a few questions:
but mostly:
5) did this start out simple and just become horribly extended over time:
stage 1:
stage 2:
Admin
I sadly have to deal with this kind of crap all day at work :(
At least now I know I'm not alone
Admin
I take it you're very glad he worked for you in the past tense.
Given a skill this... lacking, the question that comes to mind is, exactly what lies and impressive buzzwords did his CV have on? If he can get a job coding, surely there's hope for me and/or my pet cat walking randomly on the keyboard to do so.
(And I bet my cat would generate more usable code per hour too.)
Admin
Pretty close, but I think you missed the closing brace. Anyway, what you really meant was...
printf("Let%sEqual (...) {\n\tlcrCurrent += %d\n}", szCharName, cChar);
Admin
And this parameter is the ASCII value of the character?
SCNR