this post was submitted on 11 Apr 2026
584 points (98.8% liked)

Programmer Humor

31972 readers
1166 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 3 years ago
MODERATORS
top 50 comments
sorted by: hot top controversial new old
[–] copacetic@discuss.tchncs.de 122 points 2 months ago (3 children)
[–] Rhaedas@fedia.io 29 points 2 months ago (1 children)

I feel called out. I'm not sure which way I'd go.

[–] SpaceNoodle@lemmy.world 28 points 2 months ago (1 children)

Get somebody else to pull it.

[–] 0ops@piefed.zip 20 points 2 months ago

For science.

[–] Absolute_Axoltl@feddit.uk 11 points 2 months ago

Me playing point and click games

[–] diabetic_porcupine@lemmy.world 5 points 2 months ago

You know what this is based AF because if you don’t do it a second time how would you know if it wasn’t a weird edge case or a race condition or maybe you just didn’t internalize the cause and effect because you weren’t looking for it until a bug appeared

[–] rumschlumpel@feddit.org 51 points 2 months ago (4 children)

But sometimes it works, or throws a different error ...

[–] einkorn@feddit.org 44 points 2 months ago (1 children)

And a different error means progress!

[–] SpaceNoodle@lemmy.world 13 points 2 months ago (1 children)

A different error each time?

[–] einkorn@feddit.org 3 points 2 months ago

I refer to @floofloof@lemmy.ca comment.

[–] floofloof@lemmy.ca 20 points 2 months ago (1 children)

When it does a different crazy thing every time and you have no idea why, it means you're a genius and have created life.

load more comments (1 replies)
[–] idunnololz@lemmy.world 6 points 2 months ago

Actually tru. Damn preprocessors.

[–] atopi@piefed.blahaj.zone 5 points 2 months ago

you have to check if you are dealing with a bug or with a ghost

[–] Blackmist@feddit.uk 32 points 2 months ago (2 children)

You make a change. It doesn't fix it.

You change it back. The code now works.

[–] zerobot@lemmy.wtf 11 points 2 months ago

the real fix was the journey, the destination never mattered

[–] MummifiedClient5000@feddit.dk 2 points 2 months ago

The code now ~~works~~ breaks in a new way.

[–] DahGangalang@infosec.pub 26 points 2 months ago (1 children)

The usual for me is that I flip back over to my editor and hit ctrl+save, cause heaven forbid I ever remember to do that before running.

[–] jtrek@startrek.website 8 points 2 months ago

I have no regrets from setting my editor to save-on-blur

[–] TabbsTheBat@pawb.social 23 points 2 months ago (1 children)

The first one is to warm up the engine. Like getting your car ignition to kick over in the winter

[–] WanderingThoughts 7 points 2 months ago

and sometimes that's exactly what's needed. Services wake up, connections get established and then when you try again things are up and it works.

[–] sleepmode@lemmy.world 22 points 2 months ago (1 children)

Trying to debug race conditions be like

[–] verdare@piefed.blahaj.zone 10 points 2 months ago

Yuuup… Debugging concurrent code is a bitch.

[–] Kolanaki@pawb.social 20 points 2 months ago (1 children)

Code doesn't work; don't know why.

Code works; don't know why.

[–] Skullgrid@lemmy.world 5 points 2 months ago

Cargo Cult Programming is bad.

[–] schema@lemmy.world 15 points 2 months ago (1 children)

The absolute worst thing that can happen is if it suddenly starts working without doing anything

[–] Ravel@sh.itjust.works 8 points 2 months ago

Sweet, push to production.

[–] endless_nameless@lemmy.world 14 points 2 months ago

The error message goes stale when it's been sitting for a while. I need to see a fresh one.

[–] Hisse@programming.dev 14 points 2 months ago

You know, youve gotta give your computer some warmup.

[–] MsPenguinette@lemmy.world 12 points 2 months ago (2 children)

You jest but “wait and retry” is such a powerful tool in my DevOps toolbox. First thing I tell junior engineers when they run across anything weird

[–] marlowe221@lemmy.world 6 points 2 months ago

Honestly, in DevOpS, when you’re running stuff in a GitHub Action/Azure DevOps Pipeline/Jenkins, yeah… sometimes a run will fail for no obvious reason.

And then work the next time (and the next 100+ times after that) when you haven’t changed a damn thing.

[–] blarghly@lemmy.world 2 points 2 months ago

"Maybe if we ignore the problem, it will go away"

[–] marcos@lemmy.world 12 points 2 months ago

Running the code again is fast and requires no thinking. Finding the problem is slow and requires a lot of thinking.

It's worth looking under the light-post in case your keys somehow rolled there. Just not for long.

[–] abcdqfr@lemmy.world 12 points 2 months ago (1 children)

Not sure which is worse. When you know you changed nothing and it inexplicably starts|stops working compared to yesterday

[–] Rhaedas@fedia.io 12 points 2 months ago

Far worse, and this applies to more than programming. If something is broken, I want it to be consistent. Don't fix yourself, or sort of work but have a different effect. Break, and give me something to figure out, damn it.

[–] sunbeam60@feddit.uk 11 points 2 months ago (1 children)

Ah, come on this is valid investigation.

If you get the same error every time, you know you can find it and debug it, somewhat with ease.

If you don’t, you might have a thornier issue at hand.

I hate how stupid and obvious this is, but we all do it at least once if the compile is short. But with a 20 min compile, I am investigating.

[–] rem26_art@fedia.io 10 points 2 months ago

gotta rule out cosimc rays flipping a bit or two

[–] ChickenLadyLovesLife@lemmy.world 9 points 2 months ago

I started coding professionally using Visual Basic (3!). Everybody made fun of VB's On Error Resume Next "solution" to error handling, which basically said if something goes wrong just move on to the next line of code. But apparently nobody knew about On Error Resume, which basically said if something goes wrong just execute the offending line again. This would of course manifest itself as a locked app and usually a rapidly-expanding memory footprint until the computer crashed. Basically the automated version of this meme.

BTW just to defend VB a little bit, you didn't actually have to use On Error Resume Next, you could do On Error Goto errorHandler and then put the errorHandler label at the bottom of your routine (after an Exit Sub) and do actual structured error handling. Not that anybody in the VB world ever actually did this.

[–] JakenVeina@midwest.social 9 points 2 months ago

This would be more mockable if it didn't often WORK.

[–] sbv@sh.itjust.works 9 points 2 months ago

Computer needs practice to get program right.

[–] kubica@fedia.io 8 points 2 months ago

Just making sure that the write buffer was flushed or something.

[–] zerobot@lemmy.wtf 6 points 2 months ago

sometimes it needs to warm up.. or cool down

[–] RustyNova@lemmy.world 6 points 2 months ago

And run it with the debugger.

[–] grue@lemmy.world 6 points 2 months ago

When your Makefile is so fucked up that you have to run it multiple times to get everything to build and link properly.

[–] JATothrim_v2@programming.dev 2 points 2 months ago

~~demons~~ ahem. data-races.

[–] masterspace@lemmy.ca 2 points 2 months ago
[–] Alberat@lemmy.world 2 points 2 months ago

sometimes you don't compile it enthusiastically enough

This is just how you use Visual Studio

load more comments
view more: next ›