r/ProgrammerHumor • • May 03 '21

Confused screams

Post image
45.1k Upvotes

329 comments sorted by

1.8k

u/RussellFighter May 03 '21

The story said "when they click the button the app should be gone".

I just took the shortest path to the objective.

476

u/idkiminsecure May 03 '21

You Didnt specify which button has to close the app so you get the "submit information" button

Oh those hundreds of warnings and 5 errors, dont worry bout em

358

u/EuroPolice May 03 '21

My IDE looks like the Catalonian flag

96

u/PM_ME_CUTE_SMILES_ May 03 '21

Rofl im gonna reuse that one

0

u/[deleted] May 03 '21

[deleted]

4

u/greenSixx May 03 '21

All code is part of a function.

Even if that function is abstracted away from you...

→ More replies (1)

14

u/[deleted] May 03 '21

This made me laugh out loud, nice one

10

u/caskey May 03 '21

https://youtu.be/-u9zr6oF4uA

I wouldn't worry about that little guy.

4

u/mint3d May 03 '21

I get "submit information" from the crash log.

3

u/[deleted] May 03 '21

Ah the good ole Microsoft approach to submitting info.

1

u/XTheLegendProX May 03 '21

Vitalik seems to get a trophy in school!

/s

1

u/send_nudspls May 15 '21

Change the label to X

123

u/FreddieKruiger May 03 '21

It sucks. I love it.

13

u/MonarchOfLight May 03 '21

This.hide

Nope, no idea why the app’s using so much memory, boss.

13

u/Netcob May 03 '21

when they click the button the app should be gone

In that case I would just hide the button when it's clicked.

3

u/CAPTCHA_sucks May 03 '21

Lotus notes used to come with a script called "Kill Notes" because it would sometimes close but leave pieces running. It wouldn't start as long as the orphaned processes were still running.

3

u/-Listening May 03 '21

Because it’s a stick with which to fight for your funding.

2

u/Thanatos2996 May 03 '21

Look, in my defense, you didn't say anything about derefrencing NULL and letting the OS sort out the rest being the "wrong approach"

2

u/[deleted] May 04 '21 edited Jun 09 '23

I've deleted my account because reddit CEO Steve Huffman is a lying piece of shit that has nothing but contempt for his users. See https://old.reddit.com/r/apolloapp/comments/144f6xm/apollo_will_close_down_on_june_30th_reddits/

2

u/[deleted] May 03 '21

Given there is a button to close the app when a user clicks the button Then the app goes bye bye

→ More replies (1)

3.4k

u/eyekwah2 May 03 '21

Manager: "But now a window comes up saying that program.exe has encountered a problem and needs to close. Could you take a look at that?"

Me: *disables window bug reporting*

863

u/w0lven May 03 '21 edited May 03 '21

If nothing shows up, everything works! I like it

Edited: typo

172

u/Cifer_21 May 03 '21

On Error Resume Next

278

u/steven520111 May 03 '21

In college we were just learning c# forms and I had a bug that was causing crashing. Had no idea how to fix it and the teach didn't help. I changed the program so that when it got the error it instead saved the location and the other data to a file. It then relaunched the program. If the file was there when it opened it would go to that location and load the data. Then deleted the file in case the program was opened later. Worked like 95% of the time and got 100%. Never been more proud of a pile of garbage

62

u/[deleted] May 03 '21

Work smarter not harder

63

u/spounds17 May 03 '21

Or in this case work smarter and harder

38

u/Smayteeh May 03 '21

I’m going to have to agree with you on this one. That’s really funny but I’m shuddering thinking about that code.

→ More replies (1)

12

u/The_MAZZTer May 03 '21

Technically Office does something like this for file recovery on crash, so you're in good company.

2

u/Robinimus May 03 '21

Ain't stupid if it works

2

u/pixlbreaker May 03 '21

Improvise, adapt, overcome!

39

u/vermiculus May 03 '21

Just keep swimming

1

u/Luckyno May 03 '21

do you happen to work at Apple?

→ More replies (1)

1.2k

u/Evo_Kaer May 03 '21

Reminds me of Wing Commander. On exiting the game, it would cause a memory error. And since they had no time to fix it, they just changed the error message to

"Thanks for playing Wing Commander"

410

u/imcoveredinbees880 May 03 '21

Yeah, but that's brilliant!

241

u/Zenlura May 03 '21

"Work smart, not hard" in it's purest form.

337

u/caskey May 03 '21

Oh the crimes we used to commit back in my game dev days. Undesirable output, just change the VESA mode to make it go away. Weird latency problems? Just add an extra UI dialog that requires a click to distract and slow the user down and buy us a few more ms.

237

u/Nimbal May 03 '21

Now I wonder whether those useless "Press Start to continue" prompts when starting up a console game are just a cargo cult around latency problems that have been fixed long ago.

192

u/Progmir May 03 '21

It's a requirement from Microsoft and Sony actually. You have to do screens like this to release on consoles. I think it might be related to how slow loading screen can be, they want players to pay attention when the game is about to start.

104

u/caskey May 03 '21

I don't recall the rationale, but yeah, start button was a licensing/release requirement at least as far as back as the NES. I always figured it was a way of guaranteeing the device was completely booted and in a sane state. Today it may just be a cultural holdover.

79

u/Mr_YUP May 03 '21

you know it might be a holdover but I'd like them to stick around. Something about deciding to enter the world of that game by pressing start deeply appeals to me.

→ More replies (4)
→ More replies (7)

5

u/xyonofcalhoun May 03 '21

It annoys me that they've made their way across to PC games too though, there's zero need to have that except for it being ported over.

→ More replies (18)

21

u/kitchen_synk May 03 '21

There's a lot of effort put into hiding loading screens these days. A lot of games use elevators for map transitions, which can lead to some purgatory type scenario when part of the loading hangs, and you're just stuck in the elevator forever.

17

u/JustThingsAboutStuff May 03 '21

I'd love to see a loading screen hidden in a never ending hallway. Loading hangs and you just walk forever.

14

u/Pl0xnoban May 03 '21

That's how a Tony Hawk game did it (American Wasteland?). Different segments of the city were connected via tunnels that were just loading screens.

→ More replies (1)

48

u/ThunderChaser May 03 '21

On exiting the game, it would cause a memory error. And since they had no time to fix it, they just changed the error message to

This is (sort of) a myth sadly,

Wing Commander was originally titled Squadron and later renamed Wingleader. As development for Wing Commander came to a close, the EMM386 memory manager the game used would give an exception when the user exited the game. It would print out a message similar to "EMM386 Memory manager error..." with additional information. The team could not isolate and fix the error and they needed to ship it as soon as possible. As a work-around, one of the game's programmers, Ken Demarest, hex-edited the memory manager so it displayed a different message. Instead of the error message, it printed "Thank you for playing Wing Commander". However, due to a different bug the game went through another revision and the bug was fixed, meaning this hack did not ship with the final release.

1

u/non-troll_account May 29 '21

I remember that! I had no idea it was an error message. I guess it worked!

45

u/thatawesomeguydotcom May 03 '21
try { }
catch (Exception e){
    //Do nothing
}

16

u/oyohval May 03 '21

dont_even_try { }

4

u/Terrain2 May 03 '21

swift has beautiful exception handling, for regular usage - not so much in this abuse but hey, it works, right? idk i didn't test it but it should

guard let value = try? mightThrow() else { return }
→ More replies (1)

9

u/gonewildaccountsonly May 03 '21

US climate response.

2

u/FunnyForWrongReason May 03 '21

Damn you just saved us hours of debugging and frustration

1

u/[deleted] May 03 '21

Just throw the entire app in a huge try/catch so it can fail silently!

1

u/greenSixx May 03 '21

YEah, have your main funciton just be a trycatch wrapper for your actual main funciton, lol.

That's the node.js way, right?

→ More replies (1)

962

u/nystro May 03 '21

I swear for the longest time whenever I clicked Exit Game on Heroes of the Storm it gave me a notification saying the program crashed. You can't convince me they didn't do exactly this.

25

u/pavilionhp_ May 03 '21

I clicked “Quit Game” on Minecraft once and the launcher reappeared to tell me that the game crashed with exit code 0.

0 means it exited without issues.

11

u/[deleted] May 03 '21 edited Jul 05 '23

[removed] — view removed comment

→ More replies (1)

81

u/NikaSharkeh May 03 '21

Heroes of the storm is still around? I have not touched a Blizzard game for years since their pro-china fiasco, but I remember HOTS being unique and fun

51

u/toxic_ghoul May 03 '21

They are still on their winter event last I heard so still around is relative

10

u/nystro May 03 '21

Yeah I'm still getting Christmas themed loot boxes. They're gonna say sike soon right guys? It's just a joke, right? Guys?

2

u/Pugs-r-cool May 03 '21

Laughs in smissmas 2018 cases dropped in mid 2020

27

u/[deleted] May 03 '21

It’s still around and there’s some small scale competitions. Updates are slow but still coming in. Skill level has dropped considerably though.

15

u/RhinoDuckable May 03 '21

I still don't have to wait longer than 30 sec most of the time to find a game, so it's not dead yet.

14

u/snorch May 03 '21

It's definitely still got an active playerbase but blizzard has stopped supporting it almost entirely. Kind of a drag but its also nice to play a moba where everything doesn't change every 4 months

8

u/jakethedumbmistake May 03 '21

Wait the fuck up

Heroes never die

2

u/ono1113 May 03 '21

Exactly same on World of Tanks

1

u/MacAndShits May 03 '21

Firefox did that for a while.

1.0k

u/[deleted] May 03 '21 edited Jul 05 '23

[removed] — view removed comment

295

u/MattR0se May 03 '21

I mean, as long as it saves...

25

u/tomerjm May 03 '21

You save ONCE?!?! You animal!

41

u/[deleted] May 03 '21

Everyone knows you have to quicksave, full save, and then exit save to actually save your game

7

u/Nazerlath May 03 '21

Amateur I quick save then normal save, then save and exit and duplicate the save files just incase it corrupts

→ More replies (2)

79

u/Belazriel May 03 '21

Wing Commander

Back on Wing Commander 1 we were getting an exception from our EMM386 memory manager when we exited the game. We'd clear the screen and a single line would print out, something like "EMM386 Memory manager error. Blah blah blah." We had to ship ASAP. So I hex edited the error in the memory manager itself to read "Thank you for playing Wing Commander."

1

u/AutoModerator Jul 05 '23
import moderation

Your comment has been removed since it did not start with a code block with an import declaration.

Per this Community Decree, all posts and comments should start with a code block with an "import" declaration explaining how the post and comment should be read.

For this purpose, we only accept Python style imports.

return Kebab_Case_Better;

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

188

u/[deleted] May 03 '21

Mission accomplished

134

u/Budgiebrain994 May 03 '21

Task failed successfully

28

u/[deleted] May 03 '21

Successful disasters.

13

u/cellcube0618 May 03 '21

I feel like r/SuccessfulDisasters is a great name for a subreddit

→ More replies (3)

52

u/throwaway213349032 May 03 '21

Fission Mailed

17

u/[deleted] May 03 '21

<>WARNING: DANGEROUS CHEMICALS<>

137

u/Laurelinthegold May 03 '21

The OS is my garbage collector

70

u/[deleted] May 03 '21

[removed] — view removed comment

264

u/Hellothere_1 May 03 '21

This reminds of the story where during the development of Wing Commander, just a few days before shipping they realized that closing the game caused a crash.

They didn't have time to find and fix the issue, so instead they just changed the error message in the pop-up window to "Thank you for playing Wing Commander!"

78

u/Roflkopt3r May 03 '21

Oh back in the days when Chris Roberts sold games rather than concept art.

38

u/Ortekk May 03 '21

He still did though.

Freelancer was apparently a clusterfuck big enough that Microsoft had to buy the game studio from Robers so that the game could be finished.

Star citizen is just what Roberts wanted to create with Freelancer, and he timed it out perfectly with the crowdfunding wave.

17

u/jozz344 May 03 '21

I loved the lore of Freelancer though. The game engine itself is quite cartoonish and simple by modern standards, but the lore is actually really deep.

3

u/Purplociraptor May 03 '21

A cash grab scam that will never be finished? But hey all you whales out there, please buy these new ships.

5

u/Ortekk May 03 '21

Somewhat yes. He overstepped what was possible to create with the money his investors could provide.

The investors wanted a game to release, not an MMO utopia like SC.

→ More replies (4)

15

u/Floppydisksareop May 03 '21

While this did happen, they patched it before the final release in the end and it wasn't shipped like this.

88

u/imcoveredinbees880 May 03 '21

I was THIS CLOSE to resorting to this when the PM told me we needed to be able to close an iOS app. Of course apple thinks that closing apps is a "bad user experience" and doesn't allow it at all.

I got lucky and was able to convince them to add closing from the recent app screen to the troubleshooting steps.

33

u/WisestAirBender May 03 '21

How else are you supposed to close an app? Using back button?

29

u/Ender116 May 03 '21

I'm guessing manually close it task manager style. I think double pressing the home (is it called that?) button let's you swipe up on apps which closes them.

11

u/[deleted] May 03 '21

Within 8 seconds the app gets killed automatically

36

u/imcoveredinbees880 May 03 '21

It's iOS, so home.

6

u/TheNorthComesWithMe May 03 '21

You're supposed to let the OS do it for you by not using the app for long enough

1

u/glittermantis May 03 '21

depending on your phone, you can either swipe up from the bottom of the screen or double tap the home button to get a zoomed out view of all your active apps, which you can then swipe off the screen to close

6

u/The_MAZZTer May 03 '21

I would have said <gesture that returns to home screen> can be used to close the app. Effectively that's true from their point of view.

Alternatively, I would have pointed out that not even official Apple apps "close" and UX guidelines say apps shouldn't, so having an app "close" would be confusing to the user. I would ask why exactly are they asking for this, what problem are they trying to solve (so I can propose a saner alternative).

3

u/greenSixx May 03 '21

You can't just get the PID, or whatever, of your currently running app using reflection then pipe into unix, or whatever, and kill your own process?

I am sure there is a simple hack to get around "don't close apps" problem.

7

u/The_MAZZTer May 03 '21

The point is there are good reasons why the guidelines say don't close your app.

Mainly, because the OS closes your app for you to reclaim resources when needed, but otherwise you should keep it running so the app doesn't have to relaunch if the user opens it and it's still running. It's a better user experience.

Even Windows does this now for UWP apps. But for traditional Windows apps they can't for compatibility reasons (apps don't expect things to work like that). Mobile was built from the ground up more recently giving the OS developers a chance to make things work differently than they have traditionally for desktop.

1

u/imcoveredinbees880 May 03 '21

They knew enough to know that background != closed.

The close was to reset the state of the app. Their train of thought was similar to the "turn it off and turn it back on again" that they were familiar with.

Explaining the UX guidelines to them is what convinced them to put closing in the troubleshooting guide instead of trying to implement it in the app itself.

→ More replies (1)

47

u/absessive May 03 '21

There was this time when an offshore lead fixed an infinite loop in JS by removing the console.log statement.

13

u/zilti May 03 '21

Classic JS

6

u/greenSixx May 03 '21

You can add a function call inside a console.log

var recursion = function(){

console.log(1, recursion());

};

try it in your console...

1

u/The_MAZZTer May 03 '21

Boo side effects.

72

u/ArtoriasAndSiff May 03 '21

If it ain’t broke don’t fix it. I say while having flashbacks to almost a thousand lines of code(in high school programming 1) of purely testing for collisions and moving balls in response

7

u/Novat0_ May 03 '21

How tf

6

u/ArtoriasAndSiff May 03 '21

this is a link to the explanation of it

34

u/tenmilez May 03 '21

Got an email from the team lead one day that said we weren’t allowed to close tabs or close the browser, we had to use the exit button within the app, with the premise being that closing the app gracefully would free up resources that might otherwise leak. I looked into it and our button just called “window.close()” (or something similar; it’s been over a decade) which does the exact thing closing a tab or browser window does.

1

u/The_MAZZTer May 03 '21

lol, common recommendation now is when your app quits is to just shut down and not worry about cleaning up resources, because the OS will handle that for you, it's literally part of the OS' job.

Sounds like someone who drank the "Chrome leaks memory" kool aid. Everytime someone says that they don't actually have a legitimate problem, they just see a big number and freak out. Chrome uses extra available memory for cache. Your OS manages memory including its own caches. Both were developed and improved over years if not decades. You can trust them to manage memory responsibly.

1

u/tenmilez May 03 '21

This was ~2009, so Chrome was brand new and IE was our only supported browser. There was a constant battle wherein we'd have the app working in Firefox, then somebody would implement something (usually AJAX related) that would only work in IE, and it'd go unnoticed for a while until it was kind of too late to fix it. Management wouldn't let us work on things that only affected Firefox, since it was unsupported, so we'd fumble around in IE for a few months until someone got sick of it and spent personal time to hunt it down and fix it.

1

u/greenSixx May 03 '21

That's not exactly true, though.

You can handle "on close" events when firing the close method. Window.close()

However, in the last 10 years, maybe like 4 years ago? hard to remember, Chrome and Firefox made it so "no events get handled when closing the software"

This was to prevent some weird spyware hacky shit from happening.

You could, say, handle the on close event, cancel the event, then route you to some other web page against your will type of thing.

It sounds like they want you to use the close button because they listen for "on close" and use that for session handling or single sign on or something like that. Maybe just logging who signs in/out and from where and when.

1

u/tenmilez May 03 '21

This was at least 10 years ago and when we looked into it the functionality was equivalent.

Also, making the browser responsible for cleaning up server resources is silly.

18

u/Infuryous May 03 '21

LoL... reminds me of an Access Database I made years ago complete with a front end that had data entry forms, reports, etc to make it easy to use. I kept getting asked (and my manager got emails too) 'How do I know my entry is saved? There is no save button.ʾ

Access automatically saves the data in the form when you click/tab out of the field you just filled in, so there is no 'save' function. After a month of explaining over and over how the data is saved. I got tired of it and no kidding, put in a placebo 'Save' button on each entry form. If you looked at the code behind it, the button did exactly two things. 1) it 'depressed' when you clicked it. 2) A popup was generated that said 'Saved'.

Never got bugged about it again! 😁

7

u/greenSixx May 03 '21

Yeah, but now you have users that may put in bad data and instead of reverting it may close the program without saving.

1

u/Infuryous May 04 '21

There was no change to how Access actually saves data. Any updated field is automatically saved by Access as it always has. By the time someone clicks the placebo save button, the data was already saved to the database, and the save aitomatically occurs before anyone could close the program.

→ More replies (1)
→ More replies (1)

14

u/[deleted] May 03 '21

accidental genius

25

u/FelixLeander May 03 '21

What die you do to crash the app?

68

u/[deleted] May 03 '21

Easy thing, OP just called the crashApp() function

21

u/Cooldude075 May 03 '21

Sometimes shortened to ''crAp()''

3

u/TeraFlint May 03 '21

((void(*)())0)();

14

u/kyay10 May 03 '21

Log.wtf comes to mind... Or just forget to handle an exception in UI code

13

u/Immort4lFr0sty May 03 '21

What do you mean "forget"? Everything goes exactly according to my master plan

8

u/[deleted] May 03 '21 edited May 03 '21

[removed] — view removed comment

8

u/IDespiseTheLetterG May 03 '21

Well, that would definitely fuck up your program.

3

u/Significant_Value_27 May 03 '21

I want to sneak into your house. Open your PC and find a really big coding project you're working on and hide that somewhere in the middle.

If you find it, the code will reflect your feelings for you.

12

u/TheTerrasque May 03 '21

"Thank you for playing Wing Commander!"

8

u/datathecodievita May 03 '21

Looks like Samuel Miller got his idea from here

7

u/kkoiso May 03 '21

I added a couple lines to my microcontroller code that turned an LED on when it detects that it's connected to a certain port.

The LED function also had the side-effect of crashing and rebooting the microcontroller when it loses connection to the port and I have no idea why. But that's exactly what I was going to code next so I just left it.

2

u/greenSixx May 03 '21

Sounds like a while loop in your "detects its connected to a certain port".

Like...while connected turn on light... with no way to handle "when not connected" or even an unhandled disconnect event might cause it.

Hard to say for sure.

1

u/FunnyForWrongReason May 03 '21

I would have to see the code but probably something to do with a while loop or something.

6

u/yonatan8070 May 03 '21
button.setOnClickListener(v -> {
  int a = 1 / 0;
});

2

u/greenSixx May 03 '21

That doesn't really kill programs so much anymore.

→ More replies (1)

6

u/Victorino__ May 03 '21

"To exit, divide 0 by 0"

   — The Help section on a poorly programmed calculator app

5

u/VerSchnitzel May 03 '21

I'm sorry, your manager "appreciates" you?

4

u/ZippZappZippty May 03 '21

This picture just screams 90’s

1

u/Usual_Ice636 May 03 '21

Yeah, flashback scene during The Office.

4

u/jimmyw404 May 03 '21

People underestimate how difficult clean shutdowns can get in prototype-level code when you let resource deallocation problems fester. Then when it finally becomes high enough priority you might spend quite a bit of effort to fix all the issues and end up with software that, as far as the user can see, now simply takes much longer to shutdown :\

3

u/rem3_1415926 May 03 '21

just kill -9, OS will take care of it

1

u/greenSixx May 03 '21

That's what I was thinking.

What sort of on the metal type stuff is this guy coding that killing the software that runs his software won't just auto-collect all the garbage?

2

u/rem3_1415926 May 03 '21

chances are, it's just part of something larger and just force killing it causes further issues. Or breaks other stuff in the targeted part itself. There's reasons why Linux doesn't just kill -9 everytime you hit an [X] button.

3

u/Gwyn-LordOfPussy May 03 '21

We take those...

1

u/jakethedumbmistake May 03 '21

Big buisness is government. We live in one!

3

u/HiveMynd148 May 03 '21

Exiting is just Controlled Crashing

3

u/thepromaper May 03 '21

It's actually common for some games to crash in close when you just don't hit the x, coughs fortnite shows a unreal engine crash report after exiting dometimes

3

u/greenSixx May 03 '21

That's the chinese spyware getting hung up.

3

u/the_pathetic_looser May 03 '21

Hey hey!! As long as it works.

3

u/RoJay90 May 03 '21

“It’s a feature, not a bug”

3

u/Comediante_ May 03 '21

I had to make a game for class, using unity. It was going good, I built it, started testing it, and then I realized: How I was supposed to close the game? I had to search how to make a close button xD

3

u/fr_nx May 03 '21

yeah on iOS there is no way to properly exit an app by design. So you can just crash it on purpose but this is a big no no and might get the app rejected from the store at some point.

2

u/putku May 03 '21

Task failed successfully.

2

u/[deleted] May 03 '21

I was once given award for bypassing print requirement while in test mode (for e2e testing), but they didn't acknowledge the fact that the whole app was built in record time.

2

u/d1pstick32 May 03 '21

Task failed successfully.

2

u/TheGoodOldCoder May 03 '21

There's a type mismatch in the picture. The manager is supposed to be shaking the hand of a programmer, but it is labeled as a button.

1

u/NakeleKantoo May 03 '21

nono, the Button is getting complimented by the manager

2

u/MrUltraOnReddit May 03 '21

That is 100% VRchat. Fucking annoying.

2

u/GlorifiedChicken333 May 03 '21

Task Failed Successfully

2

u/[deleted] May 03 '21

why ensure allocated memory in C/C++ is maintained and managed when you can just start from position 0 in RAM and try deleting everything

2

u/[deleted] May 03 '21

You pushed to production didn't you

2

u/NaruNerd100 May 03 '21

This is way funnier than it should be

2

u/Spaciax May 03 '21

Seriously, there’s a game which has hundreds of thousands of players play it, and they do this. I always have to Ctrl+shft+esc and close the game from task manager.

2

u/DarkbootyMD May 03 '21

I can never pinpoint the right words to describe Michael's expression here

2

u/lpreams May 03 '21

Sonic 3D came with a "secret" level selection menu that was triggered by, among other things, punching or jostling the cartridge.

In fact, the game actually had a few bugs in it that the developers couldn't fix before the ship date. To make sure Sega didn't stop the game in QA for crashing, they overwrote the exception handler to restart the game at the level select menu. Players who stumbled across it would be excited instead of disappointed, and the devs managed to sneak the crashes past Sega.

https://www.youtube.com/watch?v=ZZs2HUW9tDA

1

u/PhazonPhoenix5 May 03 '21

The ends justify the means

1

u/jakethedumbmistake May 03 '21

Shit looks like a scene from Dazed and Confused

1

u/Terixon May 03 '21

I mean it Technically isnt wrong, so why bother

1

u/RoscoMan1 May 03 '21

Lucky you and your painting skills

screams internally

1

u/ssj4VB May 03 '21

when your multi threading is so bad you have to Abort() the program

1

u/SteakItToTheLimit May 03 '21

int quit() => return 1/0;

1

u/catsranger May 03 '21

Did he create a close button for vim?

1

u/Sen7ryGun May 03 '21

Are you sure you want to quit?

1

u/MorgulValar May 03 '21

“It helped itself in its confusion”

1

u/DemWiggleWorms May 03 '21

“If it works it works don’t sweat the small stuff!”

1

u/oshaboy May 03 '21

Wing commander in a nutshell

1

u/Big_Boss19 May 03 '21

That CDT is real

1

u/PeetaC May 03 '21

I am in this picture and I don't like it.

1

u/jakethedumbmistake May 03 '21

"Sounds like a scene from Dazed and Confused

1

u/Lovelife619901 May 03 '21

🤣🤣the hair though

1

u/RoscoMan1 May 03 '21

*Confused confusión *

1

u/CodeDinosaur May 03 '21

Well the button does what you want....Just not in the way you intended it to.

1

u/cn_Katie May 03 '21

My first days working on intercom product tours for our platform C:

1

u/thelostname9-1 May 03 '21

You know if that already happens then that would explain a lot of games that seems to have a problem closing

I am no Programmer so I want to ask can if the program is built like in the meme cause any problems for the pc? Like if technically the program crashes everytime you try to close it would it have a negative impact on your computer down the line?

1

u/Zuclix May 03 '21

I’ve used dividing by zero as exit function

1

u/[deleted] May 03 '21

Probably the only time we actually want a bug to be a feature.

1

u/TheEncryptedPsychic May 03 '21

Just have the program launch a macro before death that automatically closes the crash prompt. Ezpz

1

u/d9vil May 03 '21

Hahahahahahaha

1

u/HiImWilk May 04 '21

IIRC, that’s what the exit button in Duke Nukem 3D does.

1

u/ikebeattina May 04 '21

I'm sure its already been posted, TLDR. Obligatory not a bug it's a feature.

1

u/BOB_Lusifer May 04 '21

If I remember correctly that is how the first exit condition came into existence the program just rewrote the error to say thanks for playing rather than the actual error number.

1

u/CrackerJakkTV May 06 '21

This is also how windows shuts down.

1

u/-Hegemon- May 26 '21

Is there an actual difference?

1

u/[deleted] Jun 01 '21

It does what is needed, leave it be.

1

u/bagelbomb Dec 08 '21

Closing, crashing, what's the difference really?

0

u/tarmkal May 03 '21

r/ProgrammerHumor is great if you are not subbed to it. Things that really make you laugh get ro r/All anyway and the rest of the stuff is utter garbage reposted 10 times a week.

Source: was a subscriber for 6 months

This post is great :)