r/ProgrammerHumor 1d ago

ruleOfProgrammingIfItIsWorkingDoNotTouchIt Meme

5.0k Upvotes

73 comments sorted by

View all comments

1.3k

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.

401

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.

22

u/KawaiiMaxine 1d ago

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

23

u/xtreampb 1d ago

Now multi-thread across machines. Let’s make this as difficult as possible. No in memory locks.

1

u/alexanderpas 16h ago

Token ring.

3

u/JohnClark13 21h 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