this post was submitted on 17 Jan 2025
246 points (98.4% liked)

Programmer Humor

35334 readers
1 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 6 years ago
MODERATORS
 
all 11 comments
sorted by: hot top controversial new old
[–] Thorry84@feddit.nl 25 points 11 months ago (1 children)
[–] tetris11@lemmy.ml 8 points 11 months ago* (last edited 11 months ago)

Check the global temp vars, files and caches. Encapsulated scoping is a lie we've been told to help us sleep better at night. Some of those seemingly well defined system functions bleed out to caches for (slight) performance gains.

You could have the most locked down explicitly defined well scoped code in the world, and it just takes one measly baked in call to a global function to shatter that dream house into a thousand pieces.

I'm looking at you string-match; you know what you did.

[–] erin@social.sidh.bzh 4 points 11 months ago

Bugs wants to be nice, they see how stressed we are so they love playing hide and seek to relax us XD

[–] jaschen@lemm.ee 3 points 11 months ago (1 children)

When I find bugs, I use screen capture software to repo it.

[–] bleistift2@sopuli.xyz 1 points 11 months ago

That requires you to be able to reproduce it.

[–] lath@lemmy.world 2 points 11 months ago

Have you tried turning it off and on again?

Some bugs only trigger on the first run. Or the second. Or the third. Or...

[–] bleistift2@sopuli.xyz 2 points 11 months ago

What was the cause?

[–] joshcodes@programming.dev 1 points 11 months ago

Got introduced to the phrase "your tongue was in the wrong spot in your mouth", for something that can't be reproduced.