- 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
This is pure gold ! Oo
Admin
"How embarassing, I seem to not be frist!"
Admin
If (number % 200 < 100) ErrorMessageFrist else ErrorMessageTwo
??
Admin
Something went sligtly awry... I wonder if these kinds of functions are required for nuclear power plants....
Plant is melting down... in an office surrounded by loud sirens and red flashing lights a lone computer monitor has this error message on it... with a flashing cursor next to it...
It sure is polite tho.
Admin
Admin
Admin
Silly noob, you need to get an instance from RandomErrorMessageApologyGeneratorFactory and attach the MillisecondDomainPartitioningBehavior and give it your callbacks to ensure your code is flexible and robust enough for the enterprise environment.
Admin
Needs more XML
Admin
Actually, now that I look at it those 2 error messages are nothing close to each other.
"Whoops! Something went slighty awry..." implys that there is a small problem... nothing we cant handle. Your pen is out of ink or some other such trivial issue.
"How embarassing, I seem to have failed that task!" is like taking an arrow to the knee. You aren't an adventurer anymore.
And if you are going to do that... You should have more than 2 error messages.
Admin
Is it wrong that I might actually consider this for non-serious errors, mostly as a form of easter egg? (i.e. for errors that should never appear in production but that if they do, it's just tripping a safety net, and would actually still list the real error underneath)
Admin
Right, it's going in.
Admin
Now.millisecond is volatile as the code executes, so this wouldn't give a random distribution. I think the distortion depends on how long it takes to execute each if statement.
For instance, if Now.millisecond > 900 at the beginning, and it takes exactly 900 milliseconds to execute each IF statement (yeah right), it would terminate at the last else condition. If it takes less time, then sometimes it will match earlier or later.
What I don't know is the extent of the bias introduced.
Admin
Yeah, because it's really important to have a uniform distribution here ! ;)
Admin
This is being a good script for call center. Can someone plz post Javav ersion?
Admin
Stored in 2 different meta tables ("TableStandardErrorMessageExclamation" and "TableStandardErrorMessageApology").
Oh and have you heard about eval() ? This might come in handy.
Admin
Fixed?
Admin
If only it were possible to eval XML...
Admin
Admin
I had a son who went slightly awry, and let me assure you it was how embarassing.
Admin
You are in a twisty maze of error messages, all alike.
Admin
You're using Java, all you've done is broken it even more.
(Before people shout troll, I'd like to point out that the original isn't in Java, I believe it's VB but as I don't use VB I cannot be certain. Aside from that, Java sucks).
Admin
Needs more Wooden Table (tm)
Admin
One of the errors should have been: "It's a sad thing your adventure has ended here!"
Props if anyone knows what that's from.
Admin
Admin
Admin
Admin
Admin
The standard in login error messages is to never report whether the problem was the login or the password, so as not to give the hacker a hint as to whether they guessed the login correctly. Have you never seen an error message that gave too much information? Maybe they were just making sure. :-)
Admin
Ignoring the attempted randomisation, I just hate those would-be-cute error messages. Unfortunately they even crop up in supposedly professional software, e.g. Firefox when it can't recover from an aborted session: "Well, this is embarrassing". Developers - just say no.
Admin
Did anyone else hear those error messages in the voice of C3P0 while reading the article?
Admin
The real WTF is that "embarrassing" is misspelled.
Admin
Why should software apologize? This is the stupidest idea ever!
Oh! And 503 pages with Flash. Lovely!
Admin
I've actually done almost exactly that.
My friend and I built a custom, one-off registration system for a large media convention. The very last part we wrote was the POS interface for convention employees. We were a little slap-happy by that point. When a transaction was successfully processed, the success message that popped up was something like, "Transaction approved. Woohoo!" where the last exclamation word changed randomly with each transaction. We gave it a list of about twenty exclamations (including "Marvelous," "Excellent," and "Huzzah!") but there was a 1-in-100 chance that instead it would say "Transaction approved. Let's get some beers!"
We got a few amused inquiries from the user base about that one.
(Captcha: incassum -- just incassumthing goes wrong.)
Admin
... Just to randomly liven up somebody's day.
Admin
TRWTF is that it does not meet best error message practices. It is well known that error messages should be chosen from those in http://www.funny2.com/haiku.htm
Second from the top should be most probable however.
captcha secundum: Not primus or tertius but secundum.
Admin
No, that's just uh...embarrassing.
Admin
Pfft.
Admin
With the level of helpfullness of most error messages I have seen, this would be a no worse.
I'm implementing this right freaking now!
Admin
You'd have gotten more than that if that particular message happened to pop up for the contingent from the Mormon Temple Gazette.
Admin
You are brave, warrior, but stupid!!
Admin
Admin
Yeah, well, I'm not about to post live work for this site.
Admin
I agree java sucks....
Admin
Things like, "Try typing with your other elbow." Or, "Captain! Th' dilithium crystals canna accept a non-numeric!" Or (for entering > 24 hours in a day), "On Earth, days can have at most 24 hours." Etc.
Admin
Here in Hyderabad, we are sharing workstations for scarecity.
[image]Admin
10 RANDOMIZE TIMER 20 I = RND(10) 30 IF I = 0 THEN PRINT "Whoops! Something went slighty awry..." 40 IF I = 1 THEN PRINT "How embarassing, I seem to have failed that task!" 50 IF I = 2 THEN PRINT "Whoops! Something went slighty awry..." 60 IF I = 3 THEN PRINT "How embarassing, I seem to have failed that task!" 70 IF I = 4 THEN PRINT "Whoops! Something went slighty awry..." 80 IF I = 5 THEN PRINT "How embarassing, I seem to have failed that task!" 90 IF I = 6 THEN PRINT "Whoops! Something went slighty awry..." 100 IF I = 7 THEN PRINT "How embarassing, I seem to have failed that task!" 110 IF I = 8 THEN PRINT "Whoops! Something went slighty awry..." 120 IF I = 9 THEN PRINT "How embarassing, I seem to have failed that task!" 130 GOTO 20
Admin
No. Its not wrong. You should definately implement this. And you should definately keep the part where Now.Millisecond is partitioned into ten options. Because splitting it into two would not make it random enough.
Admin
Two words: Female programmer
Admin
FIXED WITH PYTHON:
Admin
Greetings from the future. Your olden ways are fascinating. Just think this to your synthetic personal assistant, and it'll update your code for you: