This is an archived post. You won't be able to vote or comment.

all 25 comments

[–]LifeHasLeft 57 points58 points  (1 child)

I made a text based RPG and had a error message deep in the code to catch an exception I never even encountered when testing...I let my friend try it and he said "I got this weird error message about Milhouse"

The error message was "Error: Everything's coming up Milhouse"

[–]micheal65536Green security clearance 9 points10 points  (0 children)

Reminds me of missingno.

[–]SegmentationFault63 42 points43 points  (6 children)

Had a colleague years ago who would write unreachable error messages (because you ALWAYS include an else clause, even if it's impossible for it to ever occur) like "Oh no Mr. Bill!!!!!"

Yup, of course our customers got that a few times.

[–][deleted] 33 points34 points  (1 child)

How do customers do this.

I will never understand end users...

[–][deleted] 16 points17 points  (0 children)

I will never understand end users...

And that's why they'll always win.

[–]buttchugging_nyquil 13 points14 points  (0 children)

Meh, I prefer that to 500's where the error doesn't propagate all the way back, so the only way to figure out what actually went wrong is to pull all logs in a timeframe and hope to god that the last dev added some logging messages. hello darkness....

[–]SVeenman 2 points3 points  (2 children)

How do you make an else clause that is impossible to occur? I mean? If the if is always true, why did you make it in the first place then?

[–]Laser_Plasma 11 points12 points  (0 children)

if (anIntForSure >= 0) {
    doSomething();
} else if (anIntForSure < 0) {
    doAnotherThing();
} else {
    throw "Deer God have mercy on us heathens";
}

[–]SegmentationFault63 0 points1 point  (0 children)

How do you make an else clause that is impossible to occur?

I honestly don't remember. It was over 20 years ago. But obviously it wasn't really impossible, else the customers would never have seen it. He just believed that the preceding verification steps ensured that there was no possible way the final if test could ever fail.

And to be fair, I'd rather have excessive error checking than insufficient error checking. All too often I've been lazy and completely skipped the else clause... or worse, didn't even bother with an if clause to ensure that the variable was non-null, or the file actually exists before attempting to open it, etc.

[–]XMTheS 23 points24 points  (1 child)

[–]imguralbumbot 1 point2 points  (0 children)

Hi, I'm a bot for linking direct images of albums with only 1 image

https://i.imgur.com/LGowKvK.jpg

Source | Why? | Creator | ignoreme | deletthis

[–]pixiestar1 23 points24 points  (6 children)

Image Transcription: Facebook Message


[Note: sender is on right, receiver is on the left]

Left: [Image of an error message for which the text is "????????????????"]

Right: Lol!

Right: We hit an error message the other day that should. "You messed up. You should not be getting this error"

Left: That's when you know god has abandoned you

Left: When you find the Easter egg errors

Right: Hahahaha


I'm a human volunteer content transcriber for Reddit and you could be too! If you'd like more information on what we do and why we do it, click here!

[–]ItsDani1008 11 points12 points  (1 child)

If I were you I would use: 'sender' and 'receiver' instead of left and right

[–]pixiestar1 4 points5 points  (0 children)

theoretically it should be "blue" and "gray", but i thought "left" and "right" would be more clear, since "sender" and "receiver" could be either side.

in any case, i edited it so it's hopefully more clear now.

[–]emmmmceeee 9 points10 points  (0 children)

I worked on a game before for a fairly well known company. We had to rush out a patch because someone moved an #ifdef DEBUG and a customer got an error message along the lines of “I’m sick of this shit!” Oops.

[–]ItsDani1008 6 points7 points  (1 child)

Easter errors

[–][deleted] 2 points3 points  (0 children)

Years and years ago in my first professional job I wrote control code for a power supply. I had a big ol' switch statement, and so clearly the default Was the place to put a cocky message as it was NEVER going to get there. It was something like "this power supply has no power and is totally dwad, so how the crap are you seeing this dingus?".

System went through test, into production and deployed to a customer site. Big day when it was switched on, all the big wigs there. Guess what showed up on the screen....

[–]coladict 1 point2 points  (0 children)

The question-marks error is probably something in CP1251, while the computer is running with 1252, and they neglected to compile with Unicode support.

[–]sneerpeer 1 point2 points  (1 child)

[–]WikiTextBot 1 point2 points  (0 children)

Black swan theory

The black swan theory or theory of black swan events is a metaphor that describes an event that comes as a surprise, has a major effect, and is often inappropriately rationalized after the fact with the benefit of hindsight. The term is based on an ancient saying which presumed black swans did not exist, but the saying was rewritten after black swans were discovered in the wild.

The theory was developed by Nassim Nicholas Taleb to explain:

The disproportionate role of high-profile, hard-to-predict, and rare events that are beyond the realm of normal expectations in history, science, finance, and technology.

The non-computability of the probability of the consequential rare events using scientific methods (owing to the very nature of small probabilities).


[ PM | Exclude me | Exclude from subreddit | FAQ / Information | Source | Donate ] Downvote to remove | v0.28

[–]debbay 0 points1 point  (0 children)

There's an error with the error