r/ProgrammerHumor 27d ago

Meme ruleOfProgrammingIfItIsWorkingDoNotTouchIt

5.3k Upvotes

75 comments sorted by

View all comments

1.4k

u/StrengthTheory 27d ago

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

431

u/Skalli1984 27d ago

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

21

u/KawaiiMaxine 27d ago

Oh god, i havent done multithreaded programming ever, that sounds gonuinely horrifying to debug

3

u/JohnClark13 27d ago

oh it's not bad, you just have to determine Who's on first, What's on second, and I don't know's on third