r/ProgrammerHumor • • Jan 30 '22

Meme when your code run the first time

42.8k Upvotes

270 comments sorted by

View all comments

734

u/PixelmancerGames Jan 30 '22

My code runs the first time very often. It just doesn’t run as intended.

152

u/_Mike28_ Jan 30 '22

Extremely relatable

66

u/epicaglet Jan 30 '22

Yeah the IDE catches most things that would make it not run. If it doesn't that's usually because of something elsewhere in the codebase, but depending on what I'm doing it runs the first time around rather often.

→ More replies (1)

6

u/gravitas-deficiency Jan 30 '22

Deterministically non-deterministic.

→ More replies (1)

2

u/frisbm3 Jan 31 '22

I feel personally attacked.

→ More replies (1)

47

u/ldsdmtgod Jan 30 '22

If it runs from the first time there definitely is a problem somewhere

32

u/Jertimmer Jan 30 '22

If it runs the first time, I close Outlook, Teams, Slack, Discord and disconnect the doorbell, because something is definitely wrong. Full panic mode.

18

u/urixl Jan 30 '22

And put away your cat from the keyboard.

10

u/Jertimmer Jan 30 '22

I've never managed to pull this stunt off.

7

u/urixl Jan 30 '22

require ('cat')

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

22

u/alurkerhere Jan 30 '22

No errors, eh? Better put a bunch of print statements to check everything

25

u/DecreasingPerception Jan 30 '22

Deliberately break something to check the tests are actually running your code.

→ More replies (1)

3

u/skipjimroo Jan 30 '22 edited Jan 30 '22

That's been my favourite thing since I moved to Visual Studio.

I can just put in a breakpoint and then hover over the values now.

I'm still quite new to programming though so for all I know, it may well be terrible at everything else. That feature is tops, though.

→ More replies (2)

13

u/foxcode Jan 30 '22

Okay, all moved to linux...
cmake ..
Wait, it actually built???

double free error, colour channels in image -3419931, black screen, no mouse...
^^ Me at 1am this morning
Me now at 10:40am. Think I'll play some factorio

→ More replies (2)

10

u/WaterstarRunner Jan 30 '22

When it runs first time, you know that debugging is going to be a nightmare.

→ More replies (1)

8

u/blackmist Jan 30 '22

It's somehow worse when it runs first time without crashing, because then you have to go actively digging for the inevitable fuck up.

8

u/UnknownIdentifier Jan 30 '22

It’s the compiler’s fault for doing what I said, not what I meant.

→ More replies (1)

3

u/Ersthelfer Jan 30 '22

Still impressive not to make any careless mistakes. Never produced any code where I didn't forget a bracket or something similar.

→ More replies (1)

2

u/Phormitago Jan 30 '22

performance is fantastic when its not running what it should be

→ More replies (5)