- 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
I bow in reverence to the guy who had the guts to do what many of us have 'thought' (or even coded and deleted) so many times!! This post reaffirms my belief that "There is balance in the Universe". Revenge of the Geek!!
Admin
Humpph. If a web site talked to me like this, I'd keep hitting Check Out to see just how far the messages would go. Then I'd modify the URL to say "checkout=Y" and get my damn discount anyway.
Admin
FTFY.
Admin
I can't tell you how many times I would have been called a ninny if every online store did this. :-)
Admin
Humans generally respond better to a rude response than a polite one anyway, so this is not as bad (or shocking) as it seems. They tend to get irritated when an automated response tries to be too polite. Give me an honest reply instead any day.
Admin
Abusive is not the same as honest. How about honest but still professional?
Admin
Admin
A shame, then, that the code shown would throw a runtime error because of the mismatched quotation marks.
It should read like this:
Admin
Admin
What? That doesn't even make sense. First of all it's unlikely they'd be using a query string for something like that, and beyond that they probably don't even need a variable at all. It likely just redirects to another page.
Admin
Nice story but let's see it in action on the real website before assuming this code ever actually made it to production. It's not unheard of to write some "frustration code" every now and then but why are we making the assumption that the given sample was ever checked in?
Admin
"The hardware wasn't powerful enough for a custom discount."
Admin
Admin
Quality. I remember same old games had a similar feature (i.e. you do something dumb and if kept doing it you'd get more annoyed error messages from the game - can't remember any off the top of my head though).
In any case, why is the website giving a 'complicated' choice to the user? Wouldn't it have been simpler for the options the user could select only be those that are valid for the promotion? Crazy talk I know.
Admin
It's been nine years since I did anything with VB. I don't remember, but doesn't it require a Break after each Case statement, or else it falls through? In which case the message will always be, "For the love of god, stop clicking Check Out!"
Admin
Your stupid system didn't give me enough insults! I am your most valuable customer and I demand more insults!
Admin
Heh... second such comment I've seen here.
I only have about a year experience with both VB and VB.NET, but I do remember that being the one language where, no, you do NOT have to break between cases.
Admin
Nope
Admin
Given that qsB is the error (see comment on first line), it appears that if there is no error number it runs the function checkVirtualBundle to see if the quantities are correct. Since any nonzero return value is acceptable, I guess they're using an integer for a boolean, and not to indicate the quantity.
So if the user has entered an acceptable quantity and hit a submit button, why the hell are they telling him he's entered a correct value and can now proceed to checkout? I HATE THAT SHIT! I ALREADY HIT SUBMIT! JUST TAKE ME TO CHECKOUT, DUMBASS!
Admin
TRWTF:
strCpnID is probably not HTML escaped.
Admin
The Real WTF is not "firing" such an idiot customer. Seriously, rewarding idiotic behaviour just sends a message that it's okay to be a moron.
Admin
Your comment is acceptable. You may now proceed to submit your comment.
Admin
Admin
We don't know how complicated the choice is. I would agree, if it's asking you to work out exactly what quantities you need to satisfy the coupon validation and type them in, but it could be providing a simple choice which any idiot should be able to complete successfully.
Admin
Tell us how you really feel. ;)
Admin
Admin
Seems to me that the customer isn't an idiot, just cheap and not afraid to complain until he gets an extra discount. The real idiot is customer service who caves in to his demands thereby telling him all he needs to do is complain a bit and he will get additional money back. It is exactly the same mentality every intelligent parent identifies in any 2 year old. Heck it is even a cliche "Give em an inch and they will take a mile."
Admin
Your sound card works perfectly.
Are you enjoying yourself?
It doesn't get any better than this.
Admin
The language you are looking for is called C. (or C++... I'm not sure about some of the other languages that have a C-style syntax. You'll have to test those yourself. :-P)
-- Furry cows moo and decompress.
Admin
Customers like this do business with you because you are soft compared to your competitors, you cave too easy.
It could also be said that it has nothing to do with them being lazy, whining brats of course.
Admin
Both of those, and most others. If I remember correctly, even bash-programming works that way.
I have come across cases now and then where the ability to just omit the break, and thus have the program execute the commands in the following case statements as well comes in really handy.
Admin
Dwarf Fortress somewhat does this if you keep hitting '?' on the in-game help. Pretty amusing. It is by no means old, though.
Admin
TRWTF is the use of
/- as a line-breaker.
Admin
I thought the same thing at first, but guessed that would only get hit in the event that there was an error, but the error got fixed. In that case, and only that case, it would make sense.
Admin
Yeah, I was going to say the same thing... makes me call B.S. on this story, since the class and href quotes ARE escaped. Maybe that's because the person who stuck that in just copied and pasted the first case and then forgot to escape the new quotes, but I think it's more likely that someone wrote and submitted this "code" because they thought it would be funny. Fail :(
Admin
Well, given that he's clearly bought enough from them to even become known to the developers, I'd suggest that he probably costs them less than he spends. If you ask me, this is a shining example of good customer service leading to a loyal customer, even though (in his eyes) the company is making frequent mistakes.
Admin
Admin
Even if it wasn't checked in, it's still funny. Yes, we've all written frustration code, but it's always fun to see other people's frustration code. The story makes me feel better about some of the evil thoughts I've had on projects in the past.
When reading articles on TDWTF, keep in mind that Alex (and company) regularly flex their "artistic license" muscles. Grains of salt are essential for enjoying the site (unless, of course, you enjoy pointing out flaws).
Admin
I'm assuming this happens immediately after you enter a discount code. This message is to let you know that your discount has been successfully applied. Not really that bad an idea--especially since some people might miss it if you just return them to the cart with a message somewhere on the page that their discount has been applied.
Admin
That's unknowledgable lover, you insensitive clod!!
Captcha: suscripit (a suspicious script written by a toad)
Admin
Oh, "coded and deleted"? IT morons are so cute when riled.
The only WTF here is in the sheer lack of any kind of professionalism.
Admin
Admin
Yeah, I was going to say the same thing... makes me call B.S. on this story, since the class and href quotes ARE escaped. Maybe that's because the person who stuck that in just copied and pasted the first case and then forgot to escape the new quotes, but I think it's more likely that someone wrote and submitted this "code" because they thought it would be funny. Fail :(
The Error Codes don't quite ring true either (for mine, anyway). Not only are they magic numbers, but (for some reason) I've rarely come accross people who would use the positive integers beginning with 1. I have encountered people who would do the negative integers from -1, but (and I really am not sure why), people seem to like to start error codes higher quite often (and even use multiples of some magic number, say 100,200,300...etc). There seems to be an implication (maybe I'm reading too much into it - or making too big an assumption) that qsB increments with each press of submit - in this case, even if the person corrected their problem, they would still get error messages, despite having corrected the issue.
The point I was trying to make is - I agree, something doesn't ring true on this one at all.
Nice Story, but. ("I like Stories" - Homer S)
Admin
I'm sure once you click "check out" and it fails the checkout button gets rewritten as
Admin
Admin
The old text based adventure game "The hitchhiker's guide to the galaxy" had a section where you needed to go into the engineroom of the Heart of Gold. The first time you tried it responded that you can't go there. The responses got progressively assertive until after 3-4 tries it said ok and you finally got in. Lots of amusement in that game :-)
Admin
Get Donut Hole
Edit: TRWTF is I can't delete this comment
Admin
Admin
First line is: 'Get correct text based on error
So yeah, if the user keeps hitting the button AND keeps getting an error then they will get an error message. I'm going to buttume that if the user CORRECTED their problem, they won't get an error, and they won't fall into this code.
I also don't see anything wrong with starting errors at 1 and incrementing. I just did that in a program I am working on.
Admin
There is nothing like trying to argue with a game which also lies to you:
Ramp The wind moans. Dust drifts across the surface of the alien world. Zaphod, Ford, and Trillian appear and urge you forward.
Slowly, nervously, you step downwards, the cold thin air rasping in your lungs. You set one single foot on the ancient dust -- and almost instantly the most incredible adventure starts which you'll have to buy the next game to find out about.
Your score is 400 of a possible 400, in 668 turns.
By the way, there WAS a causal relationship between your taking the toothbrush and the tree collapsing at the very beginning of the game. We apologise for this slight inaccuracy.
Game Over .... press Return or Enter to restart!
In cause you still like arguing with a game, go to http://www.bbc.co.uk/radio4/hitchhikers/game_andrew.shtml