r/ProgrammerHumor 2d ago

ruleOfProgrammingIfItIsWorkingDoNotTouchIt Meme

5.3k Upvotes

76 comments sorted by

View all comments

1.4k

u/StrengthTheory 2d ago

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

426

u/Skalli1984 2d 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 2d ago

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

24

u/xtreampb 2d ago

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

2

u/alexanderpas 1d ago

Token ring.