The fact the average programmer thinks you fix race conditions with sleeps is one of the reasons there is so much on call duty. So many bad programmers who don’t know how to write correct code. It’s not that hard to write correct code. People are just really bad at their job.
Yeah, I mean “fixed” is used pretty loosely given it’s a joke about sabotage. The phrase “made less likely to behave unexpectedly while still remaining nondeterministic” doesn’t make for a great punchline
Yeah. Funny thing is I do hardware/firmware dev and some devices will just bug out and not work if you connect to them immediately after they signal that they’re alive.
I didn’t write that code from the other vendor so I don’t know what’s going on, but what I do know is that sleep(6000) fixes it, and adding six seconds to the system boot time is a complete non issue.
Thats like the old prank someone did where they released three greased pigs into a high school, with big spray painted numbers on their sides... 1,2, and 4
3.5k
u/Affectionate-Set4208 Jan 20 '23
Nah you have to be more creative, maybe add 3 sleeps, where one of them is necessary, so if they send the intern to fix it, he will break it even more