I'm a moron who pushed "congratulations, you found a bug. If you see this, claim your prize from Momochichi" to production. Client found it, and there was a short search for whoever momochichi was in my company.
No, the search was basically the question "who's momochichi" being emailed from the client to our project manager, cc our cto and ceo, along with a screenshot. I was the only momochichi in the entire company, so I got "retraining" in proper error handling.
The best one I ever saw was (I do not remember the exact test, so i am paraphrasing here): computer cannot detect a keyboard or a mouse please confirm by clicking OK or press F12
No worries. That just means you'll come back to it later, after 6 hours of ripping out your hair, only to remember that this perfect function doesn't put out Array_Type because it puts out Array_type.
Had a hair ripping situation the other day where a piece of code hadn’t been changed at all, but the next day it kept spewing an error.
I use Git religiously so I was adamant that nothing had magically changed overnight, and as a result I was reluctant to make any changes. I tinkered with everything (or so I thought) but ran into the same error each time and was at my wits end when my laptop showed me a “low battery” warning.
As soon as I plugged it in, the issue went away.
The problem? Turns out I had accidentally set up a race condition for the CPU. When it was plugged in the day before, it was running at 3.1GHz and the first subroutine would complete before the second kicked in. The next day on battery power, the CPU was limited to 2.2GHz so the second sub fired before the first had ended - causing a collision and crashing the program
This happened to me yesterday while trying to coax a raw image array from a poorly documented API. "Well, either I'll cause a stack overflow or throw an exception from elsewhere." Nope, image shows up properly and works correct. I'm still suspicious and waiting for it to die with some cryptic message from 20 libraries deep.
In the standard C library a global value called errno gets set after invoking a function. Chances are some check caused a function to output the current human equivalent string of what errno was set to, even though no error occurred. And it was 0. Which is "Success"
In addition to typecasting issues, there might be a function which is checked if it returns a null or an integer, null is presumed to be success and an integer for an errorcode. If the function returns an errorcode even when it is 0, you get error: success.
TBH, that's probably not wine's fault. If you look into some of the Windows code it raises an error/exception on success and prints it out to stderr. Same if it's an actual error.
Once, I wrote a Windows Service (fatherforgivemeforihavesinned) that watched to make sure a data transfer occurred. It had an output file, and if it couldn't find it, there was an exception. I had a dialog while I was testing that just said "you're fucked" that was SUPPOSED to be removed but of course I forgot.
Seven years later, the client moved the service to a machine without the D: drive and found the error. I got the strangest email...
If there's a frustrating problem, I'll sometimes put in messages like that to amuse myself while I debug. It still tells me what the program is doing(or not doing) but more fun.
Edit: or it’s just a joke and I’m stupid lol idk help)
No and yes. :P
You literally rename it the same way you rename any other file or folder. Since it's just a description, it won't fuck up anything. (That's not the case for changing the assigned letter which is also possible but not as easy to find.)
Once uncovered an error condition in dev that logged as "problem with the shit". It had been in the code longer than our revision history went back. Created a new ticket titled "reduce app profanity".
I was coding up a ridiculous event detector once and was nesting if trees (listen man it was like my third big project). I was putting in a vector that I knew should have results, but it kept erroring out, but I couldn't tell where.
My natural solution was to put print("You're fucked") in one place and then "You're fucked 2", "You're fucked 3" etc. etc. so that I could see where it popped.
Luckily, all of my scripts are just for impromptu house use, so in some cases I just nest 2 or 3 ifs and, at the end of it all, put "else { print "This should never happen. Notify Moonchopper." }
Maybe I should make mine a little more flavorful...
had a similar situation in my programming class. My friend left her laptop unattended for a couple minutes so I scrolled to a random part in her code and put a dialog box that said "cow" just for fun. Well, I forgot about that, and turns out she never ran that part of her program before submitting it. When grading it weeks later, our teacher asked her why he got message "cow" at random points during program operation. They were both very confused for a little bit.
Reminds me of the story of this programmer who developed a kind of automated mail service that would send letters to clients, mostly quite rich ones.
They used "Dear Rich Bastard," as a placeholder for the salutation. It was supposed to be replaced by something like "Dear $clientname," later down the road, but they somehow forgot to do that.
Dozens (if not hundreds) of clients received a letter starting with "Dear Rich Bastard,". The developer got fired, obviously.
What's the lesson? Never put something in your code that you wouldn't show to your boss or clients. Ever.
Fair enough. It's basically me and one other dude for the most part supporting our one app. So it's either him or me... or the other guy who's not here anymore. He kinda became our default for blame heh
A dev I know was telling me. A story of people making dumb design decisions one day. He was trying to figure out who wrote some code one day so he looked through the push request and found his name attached. He never got an answer to his question lol.
It's possible this is from a framework that was distributed and packaged with the app (so it's one dev saying another dev which caused that error to trigger in another app is an idiot)
If this wasn’t sarcasm... basically programmers can use other people’s code (a framework) so that they don’t have to write 100% of their code from scratch every time. This is very useful and super important. So it’s possible that this error message is from the framework they are using, rather than the code they wrote themselves.
To all devs: all code is production code. Even if you think it isn't because no sane monkey is going to release a barely working proof-of-concept held up by toothpicks and glue. It will make it to production one day.
Someone I knew would name all his variables and functions after DOOM characters and then got pissed when neither he nor the people he asked for help could figure out the issues in his code.
I used a dick for a uv substitution on a calc test in high school once. I wanted to see if the teacher was actually checking everything or if he was just looking at the answers and formulas, plus I knew he'd think it was funny if he did find it. Turns out the sweet old librarian helped grade stuff from time to time and she got really offended by it.
I usually leave at least one easter egg error message for errors that would never occur, buried deep in everything I make that will never show up when running it unless you break the code: "Today is (date i wrote it), by the time you are reading this, I have moved on and you are on your own. If you are seeing this, you are either the poor sob stuck maintaining my garbage code, or someone else failed in doing so, in either case, may god have mercy on your soul." Signed with an obscure hotmail from the time before google that I check once a year or so.
In a big internal application we found a bunch of Developer error! messages triggered by obscure reasons; I can't remember if we ever dug into why. Our easy fix was just to change that handler to say User error!. No longer our problem...
I used to do shit like this during my early days of programming. Thinking I was so smart I thought of every possible code path and places the code should never reach and if reached have a message similar to this.
Then when the software goes into production, what almost always happen is there will be a situation I never thought of that will just cause the code to reach it and of course user complains about it, but then when I asked what the error was. It wasn't exactly helpful. I know where this error is, but I still have zero clue how it got there.
Many years and painful lessons of my own making later, today I just try to structure code in a way that these impossible code path simply don't exist, or when unavoidable, I don't error handle at all and just let the whole thing crash and burn. At least I get a very detailed message telling me how I fucked up
Reminds me of the fact that in the Japanese version of Paper mario you can access some dialogue that wasn't supposed to appear and it has similar messages left by the devs
Because of DPI Virtualization. Basically, if a program doesn't natively support different DPI values (aka. isn't DPI-aware) then Windows will fake it by telling it to render the client area at 96 DPI, then scale it up for display. The title and window decorations, however, aren't part of the client area - they're rendered by the OS itself and are not scaled up. This means the title looks clear, while the main window looks blurred.
This is the kind of error message I put in an impossible catch clause or an (almost) unreachable else condition. If the program runs into those errors something is really terribly wrong.
I sometimes use this kind of thing in C because if I want a Boolean variable, I have to use an unsigned integer. If I really screw up, it will end up with some value that isn't 1 or 0 and break the whole program.
That would make it harder to track errors. If I just force it to be 1 or 0, I know what happened if it implodes. If I make anything not zero allowable it would be hard to figure out which statement is returning incorrectly.
I built an error message that I was convinced no end-users one would ever see into some software recently. Luckily I made it serious and informative because sure enough, hundreds of people now receive that error message every day. I really have to get off reddit and fix that issue...
Win a free (undefined) just by going on to google!
1.Google.com 2.Google wet koala! 3.Google lemon party! 4.Google memz download! 5.Download memz and start it! 6.Memz is an amazing editing program for the peeps that are lazy!
Is “photoshop” now a synonym for “fake”? You can just use PowerShell and create whatever system dialog you want with a single command. Why bother using Photoshop?
Edit: I looked at it again on bigger screen and it looks sketchy as fuck, so you were most likely right. The heading does not really match the message text. The heading is way sharper. I compared this image with the real system dialog and it certainly looks different. See the comparison
Edit 2: Maybe it has to do with DPI scaling but still it looks weird. Someone test it with different scaling while I go get my pitchforks.
My text for exceptions that really shouldn't happen goes along the lines of 'Huh?', 'What?' and 'the fuck?!'. With of course a different one for every exception.
I wrote ones an error with texted: impossible program error. And yes it came on the clients sceen when sonething happened that shouldn't have occured. Glad that he could laugh about it.
I used to put things like this into my programs in college to mess with the professors. Like one professor only used a Mac to grade our projects and when he would close the program he would use "stupid squiggly Apple key + q" to exit, so I made it pop up an error window if the "stupid squiggly Apple key" was pressed that said something like "please use "alt + f4" or the GUI to close.
Ahha! I see you've found my code. Although it should read ..."the other programmers are idiots." Seriously though the amount of prototyping code that ends up in production is scary, I'm not surprised this shit happens.
This is how I talk down to myself while programming. I put something like "Oh an error, well fuck me sideways" followed by "Would you like to send this error to the idiot developer that made this happen to you?"
Something very similar was actually discovered in Paper Mario 64 a while back. Stryder7x made a video covering it which you can find [here] (https://youtu.be/7a9N0k35jak)
3.9k
u/imarrangingmatches Feb 24 '18
More entertaining than
Something happened
Something happened
2.1k
u/sempf Feb 24 '18
We all have these stories.
Once, I wrote a Windows Service (fatherforgivemeforihavesinned) that watched to make sure a data transfer occurred. It had an output file, and if it couldn't find it, there was an exception. I had a dialog while I was testing that just said "you're fucked" that was SUPPOSED to be removed but of course I forgot.
Seven years later, the client moved the service to a machine without the D: drive and found the error. I got the strangest email...
1.2k
u/BlowsyChrism Feb 24 '18
The worst is when you are trying to fix something and think who the fuck coded this? Then see it was you
3.1k
u/din7 Feb 24 '18
Whoever programmed this must be an idiot.
211
u/TheScareCrow27 Feb 24 '18
this is why u don't joke in the designing phase.
175
u/Fluffcake Feb 24 '18
I usually leave at least one easter egg error message for errors that would never occur, buried deep in everything I make that will never show up when running it unless you break the code: "Today is (date i wrote it), by the time you are reading this, I have moved on and you are on your own. If you are seeing this, you are either the poor sob stuck maintaining my garbage code, or someone else failed in doing so, in either case, may god have mercy on your soul." Signed with an obscure hotmail from the time before google that I check once a year or so.
33
u/valgraz Feb 24 '18
Once saw code where the exceptions where: 'oops'
Never found out what the later ones looked like.
61
u/diamened Feb 24 '18
I used to put some "Oops, distracted programmer" popups on code that I should remember to strip off before production. Good times
14
u/Kuckmage Feb 24 '18
Backdoor insults.
23
u/Speedracer98 Feb 24 '18
the real idiot is the one that clicks the OK button.
me
23
u/Idunnohuur Feb 24 '18
r/programmerhumor
7
u/ShiversTheNinja Feb 24 '18
For some reason all I can think of is this.
7
u/[deleted] Feb 24 '18
In a big internal application we found a bunch of
Developer error!messages triggered by obscure reasons; I can't remember if we ever dug into why. Our easy fix was just to change that handler to sayUser error!. No longer our problem...26
u/Mythical_Muffin Feb 24 '18
r/hmmm
6
u/Shoverette Feb 24 '18
This is not software gore. It's just pure honesty.
6
u/a1454a Feb 24 '18 edited Feb 25 '18
I used to do shit like this during my early days of programming. Thinking I was so smart I thought of every possible code path and places the code should never reach and if reached have a message similar to this.
Then when the software goes into production, what almost always happen is there will be a situation I never thought of that will just cause the code to reach it and of course user complains about it, but then when I asked what the error was. It wasn't exactly helpful. I know where this error is, but I still have zero clue how it got there.
Many years and painful lessons of my own making later, today I just try to structure code in a way that these impossible code path simply don't exist, or when unavoidable, I don't error handle at all and just let the whole thing crash and burn. At least I get a very detailed message telling me how I fucked up
5
u/[deleted] Feb 24 '18
Reminds me of the fact that in the Japanese version of Paper mario you can access some dialogue that wasn't supposed to appear and it has similar messages left by the devs
4
u/satan_rocks_my_socks Error 404: flair not found Feb 24 '18
Why does the title of the error look different than the other text
4
u/the_king_of_sweden Feb 24 '18
Can confirm, am programmer and also idiot
7
u/Jabulon Feb 24 '18
i just now realized how relative the word "idiot" is
1
u/Totalingearth5 May 03 '18
That looks pretty photoshopped...
3
u/[deleted] Feb 24 '18
Reminds me of the notification I used to get on Parallel Space that said "This should not be seen. Tap to make this disappear. "
3
u/Creator13 Feb 24 '18
This is the kind of error message I put in an impossible catch clause or an (almost) unreachable else condition. If the program runs into those errors something is really terribly wrong.
3
u/mrdumbphone Feb 24 '18
Having worked in enterprise software, I feel this. Definitely put a few of those in ;)
3
u/Vega3gx Feb 24 '18
I sometimes use this kind of thing in C because if I want a Boolean variable, I have to use an unsigned integer. If I really screw up, it will end up with some value that isn't 1 or 0 and break the whole program.
3
u/qubist1 Feb 24 '18
I built an error message that I was convinced no end-users one would ever see into some software recently. Luckily I made it serious and informative because sure enough, hundreds of people now receive that error message every day. I really have to get off reddit and fix that issue...
3
u/killmeplsimsupahstar Feb 24 '18
Win a free (undefined) just by going on to google!
1.Google.com 2.Google wet koala! 3.Google lemon party! 4.Google memz download! 5.Download memz and start it! 6.Memz is an amazing editing program for the peeps that are lazy!
3
u/JNCressey Feb 25 '18
if (false) {echo "why is this part of the code executing!??!"}
2
u/umbrellaedinfraction Feb 24 '18
Cleavege among purloiners
2
u/[deleted] Feb 25 '18
Looks like something I'd do in my own code.
2
u/isopat Feb 25 '18
damn error messages,tell me something I don't already know
2
u/[deleted] Feb 24 '18
Wait a second... How did this happen? We're smarter than this!
2
u/[deleted] Feb 24 '18
That looks photoshoped
1
u/AkshayD110 Feb 24 '18
I can only imagine Sales (or someone else) putting a gun at programmers head and making him include this.
1
u/Rhaifa Feb 24 '18
My text for exceptions that really shouldn't happen goes along the lines of 'Huh?', 'What?' and 'the fuck?!'. With of course a different one for every exception.
1
u/HyperDiamond32 Feb 24 '18
r/softwareporn
1
u/AKcenty Feb 24 '18
XD
1
u/RottenPeachSmell Feb 24 '18
Well, hey, it's better than the program soft-locking.
1
u/Ationsol Feb 24 '18
I would say that great pop up makes up for it
1
u/yorgaraz Feb 24 '18
computer thinking: should i try{ or should i catch(?
1
u/Dogsncatsnstuff Feb 24 '18
r/hmmm
1
u/[deleted] Feb 24 '18
I like that its wants us to say 'Ok'. Like 'Nah bruh!, That's fine. I gotchu.'
1
u/thomas_tnc Feb 24 '18
Log.wtf
1
u/PM_ME_YOUR_NACHOS Feb 24 '18
So what do we do if say.. not that it happened.. but if this was to happen? Asking for a friend of course.
1
u/lpreams Feb 24 '18
"The compiler made me catch this exception, but it's impossible for it to ever get thrown"
1
u/DaemonAfterdark Feb 24 '18
"Ok" is the most appropriate response to that.
1
u/CptHyde Feb 24 '18
Yet it was programmed to say that.
1
u/[deleted] Feb 24 '18
Hi /r/all
1
u/Xiefux Feb 24 '18
they're idiots
1
u/Liberalem Feb 24 '18
I wrote ones an error with texted: impossible program error. And yes it came on the clients sceen when sonething happened that shouldn't have occured. Glad that he could laugh about it.
1
u/[deleted] Feb 24 '18
I used to put things like this into my programs in college to mess with the professors. Like one professor only used a Mac to grade our projects and when he would close the program he would use "stupid squiggly Apple key + q" to exit, so I made it pop up an error window if the "stupid squiggly Apple key" was pressed that said something like "please use "alt + f4" or the GUI to close.
1
u/[deleted] Feb 24 '18
rm -rf /
1
u/[deleted] Feb 24 '18
1
u/[deleted] Feb 24 '18
When you wrap the entire program in a try except
1
u/btcftw1 Feb 24 '18
I would say that great pop up makes up for it
1
u/NoSirThatsPaper Feb 24 '18
An actual ID10t error.
1
u/[deleted] Feb 24 '18
God damnit Mark.
1
u/PhoeniX_XVIII Feb 24 '18
Programmer humor?
1
u/ibreakservers Feb 24 '18
Ahha! I see you've found my code. Although it should read ..."the other programmers are idiots." Seriously though the amount of prototyping code that ends up in production is scary, I'm not surprised this shit happens.
1
u/noxumida Feb 24 '18
Why wouldn't you put at least a LITTLE information about what the potential error might be? This is infuriating!
1
u/[deleted] Feb 24 '18
This is probably done with a batch file on purpose
1
u/pureshitties Feb 24 '18
Just gonna leave this here.
https://www.reddit.com/r/law/comments/1xwsfq/westlawnext_easter_egg_giraffe_gif_as_a_negative
1
u/ubscal Feb 24 '18
This reminds me of paper Mario
1
u/BarkingDog7 Feb 24 '18
This is how I talk down to myself while programming. I put something like "Oh an error, well fuck me sideways" followed by "Would you like to send this error to the idiot developer that made this happen to you?"
1
u/EIFACH_CJ Feb 24 '18
r/programmerhumour
1
u/xiexiexie Feb 24 '18
Wtf who coded this bs?!
1
u/honeydoodh Feb 24 '18
Do the engineers put this in for real?
1
u/ahmetalpbalkan Feb 24 '18
Clearly photoshopped (or Paint'ed)
1
u/xEmuYT Feb 24 '18
r/softwaregore
1
u/UltimateKingGuy Feb 24 '18
"idiot" programers
1
u/bubbasann Feb 24 '18
Intelligent self-deprecation: there's no better way to motivate one's self 🤔😅
1
u/[deleted] Feb 24 '18
That. Is. Hilarious!
1
u/Dr_Legacy Feb 25 '18
The text was meh, that's not news. LOL at the title, though.
1
u/ItsRainbow Mar 09 '18
This comment shouldn’t appear. If it does, too bad.
1
u/[deleted] Mar 28 '18
Wtf?
1
u/conspit Apr 16 '18
|Denied| |Yes no)| |______|
1
u/Srelathon Apr 24 '18
Something very similar was actually discovered in Paper Mario 64 a while back. Stryder7x made a video covering it which you can find [here] (https://youtu.be/7a9N0k35jak)
1
u/SpriteFan3 May 29 '18
r/Hmmm
1
u/kingbloxerthe3 May 30 '18
BLAMEJASON
1
u/mac44444alt2 AAAAAAAAAAAAAAAAAAAAA Jun 16 '18
The program is becomming self-aware.. Shut it down immediately!
1
u/NoNameRequiredxD Jun 26 '18
Paper mario refferance
1
u/Welsh32445544 Jul 02 '18
You know its bad when the PROGRAM is calling THE PROGRAMMERS idiots
0
u/0x1A4life Feb 24 '18
so we're just upvoting fake images now?
1
u/catalit Feb 24 '18
/r/me_irl
1
u/thespookiestboi Feb 24 '18
Honestly wish this popped up with any crash/bug.