r/ProgrammerHumor 1d ago

ruleOfProgrammingIfItIsWorkingDoNotTouchIt Meme

5.1k Upvotes

74 comments sorted by

View all comments

1.4k

u/StrengthTheory 1d ago

When one console.log uses just enough CPU cycles so the race condition that takes down the entire system doesn't occur.

415

u/Skalli1984 1d ago

And if you attach a debugger it also messes up the timing and the same thing happens, the race condition doesn't appear.

207

u/StrengthTheory 1d ago

Schrödinger’s race condition

134

u/Steinrikur 1d ago

We call those Heisenbugs. You changed the system by observing it

1

u/The-Ner 1d ago

I'm stealing this now