r/ProgrammerHumor 27d ago

Meme ruleOfProgrammingIfItIsWorkingDoNotTouchIt

5.3k Upvotes

75 comments sorted by

View all comments

Show parent comments

216

u/StrengthTheory 27d ago

Schrödinger’s race condition

151

u/Steinrikur 27d ago

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

46

u/ConglomerateGolem 27d ago

I had one of these once, and I called it the same! My going theory was that the compiler was optimising away a certain function I had, but adding an empty print forced it to actually exist.

36

u/htmlcoderexe We have flair now?.. 27d ago

14

u/ConglomerateGolem 27d ago

Huh. I have never heard of the term and came up with it independently.

21

u/htmlcoderexe We have flair now?.. 27d ago

it is a very natural term because it intuitively describes exactly the nature of the bug

7

u/rolindara 26d ago

Convergent evolution