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

Programmer Humor

32920 readers
211 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
top 11 comments
sorted by: hot top controversial new old
[–] [email protected] 24 points 3 days ago (1 children)
[–] [email protected] 1 points 3 days ago

I had this on an ESP32 once. Turned out spitting out serial console debug messages slowed things down enough to resolve a race condition when I tried to see what was happening. I learned more about using an actual debugger after that instead of spitting out "here" messages and variable values.

[–] [email protected] 16 points 3 days ago (1 children)

Did you perform the correct incantation?

[–] [email protected] 5 points 3 days ago

This is why I keep the freezer outside my office stocked with chickens

[–] [email protected] 6 points 3 days ago* (last edited 3 days 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.

[–] [email protected] 4 points 3 days ago

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

[–] [email protected] 2 points 3 days ago

What was the cause?

[–] joshcodes 1 points 2 days ago

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

[–] [email protected] 2 points 3 days ago (1 children)

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

[–] [email protected] 1 points 3 days ago

That requires you to be able to reproduce it.

[–] [email protected] 2 points 3 days 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...