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...
328
u/Davidfreeze Feb 24 '18
Hahahaha I put shit like that in my code for debugging. Maybe I should stop
163
u/slashuslashuserid Feb 24 '18
let's be real, everyone knows it's bad and does it anyway because it's just too damn convenient
74
u/Pseudofailure Feb 24 '18
Let's be real, everyone it's hilarious and harmless and does it anyway because who cares about overly sensitive conformists.
34
u/while_e Feb 24 '18
The key is to use the same word or phrase, then you can grep your source before release.
66
u/Raestloz Feb 24 '18
If I do it, it'd be something like
"You're fucked"
"You're absolutely fucked"
"You're really fucked"
"You've done fucked up"
and I'd only search for "You're fucked", found a bunch of it, and ship the software blissfully forgetting the rest
→ More replies (2)→ More replies (1)5
u/zdakat Feb 24 '18
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.
182
u/boing_boing_splat Feb 24 '18
The D: drive is my favourite drive cos
D:
26
u/SurpriseAnalProlapse Feb 24 '18
Mine too! I named my first D: Plunder
→ More replies (1)14
u/HelloThisIsFrode Feb 24 '18
You can name them? O M G how???
Edit: or it’s just a joke and I’m stupid lol idk help)
→ More replies (7)76
390
37
u/son-of-chadwardenn Feb 24 '18
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".
4
19
Feb 24 '18
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.
Worked pretty well.
→ More replies (1)11
u/Moonchopper Feb 24 '18
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...
→ More replies (5)12
8
→ More replies (2)4
u/greenkey Feb 24 '18
I live the fact that the problem was that the drive was missing... Like WTF D:
→ More replies (1)
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
35
u/mylifeisashitjoke Feb 24 '18
See it can only ever be me on my shit tier side projects
But I'll be damned if I can't blame someone else's shit code
32
u/BlowsyChrism Feb 24 '18
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
→ More replies (1)15
9
→ More replies (13)6
u/desert_igloo Feb 24 '18
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.
3.1k
u/din7 Feb 24 '18
Whoever programmed this must be an idiot.
1.3k
u/DustiiWolf Feb 24 '18
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)
222
Feb 24 '18
That made my head hurt
→ More replies (2)365
u/Gotta_Ketcham_All Feb 24 '18
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.
→ More replies (17)14
u/lasiusflex Feb 24 '18
If you're developing a framework, you're responsible for good error management, even if the people using it are idiots.
21
→ More replies (4)10
181
u/alexnoyle Feb 24 '18
Not gonna lie... I have written something like this before. lol
140
u/drunkcowofdeath Feb 24 '18
The number of times I have outputed "How are you seeing me?" while fixing broken if statements is staggering.
112
u/joshgreenie Feb 24 '18
Mine are "wut" "the shit" and "Testy McTesterson the 3rd"
→ More replies (12)→ More replies (14)35
u/ablablababla Feb 24 '18
The number of times even the output statement is broken is staggering as well.
→ More replies (1)0
Feb 24 '18
[deleted]
234
56
→ More replies (3)6
211
u/TheScareCrow27 Feb 24 '18
this is why u don't joke in the designing phase.
158
Feb 24 '18
Programming student here. Thanks for the tip, I write the weirdest stuff in my codes to entertain myself.
44
16
→ More replies (17)4
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.
40
11
u/NorbiPeti Feb 24 '18
I had a program where after calling
Environment.Exit(0)it'd have shown "Failed to shut down program"...
33
u/valgraz Feb 24 '18
Once saw code where the exceptions where: 'oops'
'error'
'bullshit'
'unbelieveblebullshit'
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
23
7
7
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 say User error!. No longer our problem...
6
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
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
→ More replies (3)
4
7
1
u/Totalingearth5 May 03 '18
That looks pretty photoshopped...
2
May 05 '18
How?
1
u/Totalingearth5 May 11 '18
Im not saying it is, im just saying it looks a little photoshopped...
→ More replies (1)2
3
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.
→ More replies (4)
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
2
2
2
2
2
Feb 24 '18
That looks photoshoped
11
u/RoBobik Feb 24 '18 edited Feb 24 '18
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.
5
u/Type-21 Feb 24 '18
You know how Windows themes are completely customizable? This user could be using a different font for normal text but not for window titles.
4
u/Sephonik Feb 24 '18
I'd say it's something to do with the font, it looks a bit odd. Then again it could just be a program I haven't seen before.
9
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
1
1
1
1
1
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
1
1
1
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
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
1
1
1
1
1
1
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
1
1
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
1
1
1
1
1
u/bubbasann Feb 24 '18
Intelligent self-deprecation: there's no better way to motivate one's self 🤔😅
1
1
1
1
1
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
1
u/mac44444alt2 AAAAAAAAAAAAAAAAAAAAA Jun 16 '18
The program is becomming self-aware.. Shut it down immediately!
1
1
0
u/0x1A4life Feb 24 '18
so we're just upvoting fake images now?
7
→ More replies (1)3
u/WHY_DO_I_SHOUT Feb 24 '18
It may well be real. Programmers sometimes add "this shouldn't happen" popups to debug, and may forget to remove them before releasing the program.
1
0
Feb 24 '18
[deleted]
348
u/Typewar Feb 24 '18
No answer from OP. He probably made it himself
173
17
u/kasbrr Feb 24 '18 edited Jun 28 '24
school upbeat sugar market growth hospital pathetic humor include obtainable
This post was mass deleted and anonymized with Redact
47
u/citewiki Feb 24 '18
It's easier to make the dialog box for real than to use Photoshop for it
14
u/x86_real_mode Feb 24 '18
MessageBox.Show("This shouldn't appear...if it does, the programmers are idiots.", "What the hell");10
u/cfogarm Feb 24 '18
MessageBox(hWnd, "This shouldn't appear... if it does, the programmers are idiots", "What the hell", MB_OK);
FTFY
7
u/Sophira Feb 24 '18
Why do you say that?
24
u/korrakas Feb 24 '18
He can tell from some of the pixels and from seeing quite a few shops in their time, probably.
16
u/kasbrr Feb 24 '18 edited Jun 28 '24
screw subtract liquid combative cheerful cooing plate payment attraction money
This post was mass deleted and anonymized with Redact
80
u/Sophira Feb 24 '18
That's actually because of a feature called 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!
12
u/kasbrr Feb 24 '18 edited Jun 28 '24
cagey strong faulty scale shaggy sort truck run plant worthless
This post was mass deleted and anonymized with Redact
10
u/Sophira Feb 24 '18 edited Feb 24 '18
No problem! If you've never actually used the DPI settings from Windows Vista onwards and just left it at the default, you wouldn't actually have seen this, but I've seen this sort of thing quite a lot.
It's a bit unintuitive, because this is a standard OS-provided message box command and you'd think that the OS would know how to render its message boxes while never using DPI Virtualization at all, but it turns out to do that if the actual program needs it, even though it shouldn't have to do that for its own layouts. *shrugs*
[Edit: if you've actually used -> if you've never actually used]
2
u/WikiTextBot Feb 24 '18
Dots per inch
Dots per inch (DPI, or dpi) is a measure of spatial printing or video or image scanner dot density, in particular the number of individual dots that can be placed in a line within the span of 1 inch (2.54 cm).
Monitors do not have dots, but do have pixels; the closely related concept for monitors and images is pixels per inch or PPI. Many resources, including the Android developer guide, use the terms DPI and PPI interchangeably.
[ ^PM | Exclude ^me | Exclude from ^subreddit | FAQ / ^Information | ^Source | ^Donate ] Downvote to remove | v0.28
1
u/rongkongcoma Feb 24 '18
But a font is usually vector, shouldn't that be sharp at every size?
4
1
u/Artorp Feb 24 '18
If programs are DPI aware, yes. Usually they're not, and Windows must scale it up after the program renders the window. There used to be a time when all programs claimed to be DPI aware without actually doing anything, so they'd end up tiny. Thankfully that doesn't happen much anymore, and when it does it is now possible to override the DPI scaling.
1
u/fwipyok Feb 24 '18
you said it yourself: usually
plus, there are vector fonts (ttf) that are made to be rendered at a specific size only (proggyfonts, unifont, gohufont, etc)1
u/wikividibot Feb 24 '18
I'm a bot. Here's the Wikipedia article as a video: wikividi.com/?t=Dots_per_inch
0
Feb 24 '18
[deleted]
1
u/kasbrr Feb 24 '18
I was only wondering about the top text being a lot sharper but the guy below explained it
0
Feb 24 '18
[deleted]
5
u/Artorp Feb 24 '18
That's probably just DPI scaling, it happens when a program doesn't know how to render on high DPI monitors so Windows must scale it up. The title bar is rendered by Windows, so it's in a correct size. It might look weird if you don't use the DPI scaling feature, but it's something I see every day.
0
3.9k
u/imarrangingmatches Feb 24 '18
More entertaining than
Something happened
Something happened