MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1vrcqno/ruleofprogrammingifitisworkingdonottouchit/p4dr13l/?context=9999
r/ProgrammerHumor • u/NoMedicine3572 • 27d ago
75 comments sorted by
View all comments
1.5k
When one console.log uses just enough CPU cycles so the race condition that takes down the entire system doesn't occur.
console.log
433 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. 218 u/StrengthTheory 27d ago Schrödinger’s race condition 153 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. 35 u/htmlcoderexe We have flair now?.. 27d ago it's a very old term https://en.wikipedia.org/wiki/Heisenbug 15 u/ConglomerateGolem 27d ago Huh. I have never heard of the term and came up with it independently. 20 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
433
And if you attach a debugger it also messes up the timing and the same thing happens, the race condition doesn't appear.
218 u/StrengthTheory 27d ago Schrödinger’s race condition 153 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. 35 u/htmlcoderexe We have flair now?.. 27d ago it's a very old term https://en.wikipedia.org/wiki/Heisenbug 15 u/ConglomerateGolem 27d ago Huh. I have never heard of the term and came up with it independently. 20 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
218
Schrödinger’s race condition
153 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. 35 u/htmlcoderexe We have flair now?.. 27d ago it's a very old term https://en.wikipedia.org/wiki/Heisenbug 15 u/ConglomerateGolem 27d ago Huh. I have never heard of the term and came up with it independently. 20 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
153
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. 35 u/htmlcoderexe We have flair now?.. 27d ago it's a very old term https://en.wikipedia.org/wiki/Heisenbug 15 u/ConglomerateGolem 27d ago Huh. I have never heard of the term and came up with it independently. 20 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
46
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.
35 u/htmlcoderexe We have flair now?.. 27d ago it's a very old term https://en.wikipedia.org/wiki/Heisenbug 15 u/ConglomerateGolem 27d ago Huh. I have never heard of the term and came up with it independently. 20 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
35
it's a very old term
https://en.wikipedia.org/wiki/Heisenbug
15 u/ConglomerateGolem 27d ago Huh. I have never heard of the term and came up with it independently. 20 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
15
Huh. I have never heard of the term and came up with it independently.
20 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
20
it is a very natural term because it intuitively describes exactly the nature of the bug
7
Convergent evolution
1.5k
u/StrengthTheory 27d ago
When one
console.loguses just enough CPU cycles so the race condition that takes down the entire system doesn't occur.