| « Prev | Page 1 | Page 2 | Page 3 | Next » |
Maybe the person who wrote it was trained on Microsoft Bob? In which case, the software would probably need to apologize. |
You need MOAR!!! Moar error messages to confuse the user. That way when they get like 3 different error messages in a row they will think that there is a different problem causing them. |
As sexy as that sounds... what you're saying is she shoulda stayed in the kitchen? |
|
Random error messages are introduced for purpose of leting client beleive that something euniquely different occur in computer each time. This way client think, he has wonderfull system
|
Re: GenerateApologyMessage()
2012-03-14 15:14
•
by
Gary
(unregistered)
|
|
You are in a maze of twisty passages all alike.
|
Re: GenerateApologyMessage()
2012-03-14 15:16
•
by
Gary
(unregistered)
|
Plugh! Someone posted this already. |
Re: GenerateApologyMessage()
2012-03-14 16:02
•
by
whatevs
(unregistered)
|
|
Starship Catan.
|
Re: GenerateApologyMessage()
2012-03-14 16:19
•
by
Secret
(unregistered)
|
You have died of cholera. |
Re: GenerateApologyMessage()
2012-03-14 16:22
•
by
Schrödinger's cat
(unregistered)
|
It returned .
|
Now I know you don't write Java code for a living. |
Re: GenerateApologyMessage()
2012-03-14 16:50
•
by
Gneius
(unregistered)
|
These two classes look a bit too tightly coupled in concept for my liking. I think the core logic needs to be factored out into implementation(s) of a TimeDomainDrivenErrorMessageGenerationStrategy interface, then the Behaviour object can probably be pared down to a simple collection of key/value pairs. |
Re: GenerateApologyMessage()
2012-03-14 17:02
•
by
Darkstar
(unregistered)
|
|
In fact, this has already been covered by Damian Conway (notable perl hacker) with the module Quantum::Superpositions.
|
Re: GenerateApologyMessage()
2012-03-14 17:03
•
by
Jimmy
(unregistered)
|
I dunno, I used to love tar (yes I know it's not an error message, but same principle): "Cowardly refusing to create empty archive" Also IIRC, many of the Sierra Games used to crash with: "You did something we didn't expect" |
Re: GenerateApologyMessage()
2012-03-14 17:04
•
by
Mick
(unregistered)
|
Pick-A-Path/"Choose your own adventure" books? |
Re: GenerateApologyMessage()
2012-03-14 17:18
•
by
Gunslinger
(unregistered)
|
As long as you have more than 2 error messages when there's 10 cases, sure, it's all good. |
Re: GenerateApologyMessage()
2012-03-14 17:41
•
by
Gunslinger
(unregistered)
|
FTFY |
Re: GenerateApologyMessage()
2012-03-14 18:17
•
by
The Great Lobachevsky
|
Was it Shadowgate? I remember my adventure ending in that a lot, mostly involving falling into pits and such :) |
|
It certainly beats the "Oh bugger" that used to spontaneously appear at the bottom of the screen when running a program that appeared on my list of programs to maintain and upgrade a few years ago.
When I reprogrammed it to get the error to explain itself, disappointment was raised by all the people who would never again be graced with the delights of "Oh bugger" when they fatfingered the input. Silly buggers. |
Re: GenerateApologyMessage()
2012-03-14 21:33
•
by
Anonymous Coward
(unregistered)
|
|
Still seems over-engineered.
return System.currentTimeMillis() / 100 % 2 == 0 ? "Whoops! Something went slighty awry..." : "How embarassing, I seem to have failed that task!"; |
Re: GenerateApologyMessage()
2012-03-14 22:02
•
by
CZeke
(unregistered)
|
Not at all -- but for the sake of sanity, at least calculate the millisecond only once. This guy probably thought he was setting up the equivalent of a switch() structure, but instead it's a sieve: the first error message has a 10% chance of triggering, the second has a 20% chance, and so on, all independent. It needs a variable, like the GWBasic version posted upthread. If you're gonna do the wrong thing, do it correctly! |
If Now.Millisecond = 666 Then |
Fool! This function is not multiverse-safe! |
So, -7 % 2 != 1? |
Re: GenerateApologyMessage()
2012-03-14 23:22
•
by
Mick
(unregistered)
|
in Java, -7 % 2 = -1 I think.... |
Re: GenerateApologyMessage()
2012-03-14 23:26
•
by
Mick
(unregistered)
|
http://docs.oracle.com/javase/specs/jls/se7/html/jls-15.html#jls-15.17.3 Akismet blows dead goats fallopian tubes |
Re: GenerateApologyMessage()
2012-03-15 00:31
•
by
Stivlo
(unregistered)
|
|
Your solution is not as efficient as the original code, but nice try.
I would have enjoyed more messages, like 'I tried my best, but I failed, sorry', 'I've to confess that the task didn't go the way I planned', 'I messed this one up, I am so sorry!', 'Apologies, the task was aborted' |
|
Shouldn't we suspect ambiguous requirements: it probably said "give a different message for each error condition."
Admittedly the solution doesn't quite do that. |
Re: GenerateApologyMessage()
2012-03-15 04:42
•
by
daef
(unregistered)
|
i smell a off-by-1-error there - didn't check thou since i am lazy by nature (=> i code for livin') |
No, I meant exactly what I said. That code snippet above will never work. It will always produce an exception, every single time. I know how to fix it, but that's not the point: any Java coder who has ever used toArray() has encountered this, and it's one of the most annoying misfeatures of the type-system. (Damnit, I know why it is this way and I can see clearly how every step into this sinkhole was taken, but it's still stupid!) |
|
Usual case when people keep shift from PHP to PERL to PYTHON to JAVA to C# to VB.NET, confusion occuring on massive scale in brain.
Without compiler it is difficult to sort out problem. Real programmer using Notepad and avoid this issue of mixed languages. In real world, I use Hindi word while speaking in English. Happens every day. Now lets go jaldi-jaldi on next topic please. |
|
Aren't random, useless error messages an industry standard ?
|
Re: GenerateApologyMessage()
2012-03-15 08:18
•
by
BitDreamer
(unregistered)
|
According to Google, it's from a website called TheDailyWTF.com. Check it! |
Re: GenerateApologyMessage()
2012-03-15 08:19
•
by
asmand
(unregistered)
|
Shadowgate? |
Re: GenerateApologyMessage()
2012-03-15 08:38
•
by
Patrick
(unregistered)
|
Whoops! Commenting went slightly awry... |
Re: GenerateApologyMessage()
2012-03-15 08:51
•
by
ObiWayneKenobi
|
No, that's Oregon Trail. The correct answer is Shadowgate. Props to anyone who got it :D |
|
Nice that it keeps system testers busy.
Is this a repeatable error? Sometimes. OK, possibly a separate defect for each error message. I'll raise one for each. --- Anyway, forget the apology. How about including a message that tries to shift the blame and accuses the user of system mis-use? Maybe with a reminder that all errors are logged and reported? |
Re: GenerateApologyMessage()
2012-03-15 09:42
•
by
Ben Jammin
(unregistered)
|
I like accusatory validation on user input i.e. "Email address is invalid" changes to "Do you not really know your email address? Have you not really learned to tpye? We're blocking your IP cause obviously you are one of 'those' clients who is gonna be clogging all our support lines." (yes, in that instance tpye would be purposeful) |
Re: GenerateApologyMessage()
2012-03-15 10:29
•
by
Brogrammer
(unregistered)
|
Just like Bachmann. Wonder what ol' Crazy Eyes is up to nowadays... |
|
I'm pretty sure Alex needs to write a GenerateApologyMessage() method for the days he can't get this site up and running or I'll pound his face.
|
Re: GenerateApologyMessage()
2012-03-15 11:49
•
by
a nonny mouse
(unregistered)
|
Is that a new .net language? "hisface#" |
I'm pretty sure you don't know what "up and running" means. Your not to smart, are you? |
Read Much? |
Wtf is "hisface sharp"? |
Re: GenerateApologyMessage()
2012-03-15 12:43
•
by
blank
(unregistered)
|
probably being trolled, but the frist thing to hurt my eyes was the declared type being anything more specific than java.util.List |
I actually had an instance once to do something like this. There was an executive manager that would constantly try to delete something, get the popup asking if he is sure, always saying yes, then suddenly realizing what he did and come running in to us to fix it. Of course the system just marked it as deleted, without really delting it so recovering was easy. On the next release he found something interesting. He tries to delete a record, it asks if he is sure, he clicks yes, then it asks if he is posistive, then absolutly sure, then unequivically certian, then politly denied him the right to delete said record. He had to have his secretary do it for him. We triggered this only on his user id so no one else saw it. Took two weeks before the next release came out so he could get back to normal and he rarely ever had his "mistakes" again. He was actually a good guy to IT, he saw the humor in it and laughed about it later with us. |
This is why we need robust undo functionality. Confirmation dialogues may make us feel good but they just don't quite work as intended, do they? Users either waste time trying to navigate them, or they learn to always click yes and end up like your executive manager, at some point clicking yes when they ought to have clicked no. And by users I mean all of us! In this case, since you were already using soft deletions, an undo feature should have been fairly straightforward to implement. |
I agree, would have been easy, but they did not want it, imagine the chaos, people randomly deletign and undeleting at will! The undo feature was in our hands only, it was called a SQL script, though undoing mistakes made by that would have been far more difficult. |
I see you're familiar with PowerSchool. |
Re: GenerateApologyMessage()
2012-03-16 03:47
•
by
Indigo
(unregistered)
|
Oh, you're so right! They'd really need someone like that to prevent such awful code. |
I know right, havign a female programmer walk in would stop all code from being written as the male programmers all stop and stare in disbelief. Then of course everyone gets back to work once they realize it's just Jim in drag. |
| « Prev | Page 1 | Page 2 | Page 3 | Next » |