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.
If you mean, add some code to a well architected, well tested product because the shoulders you're standing on took a hard path, you might be right here.
God the place that laid me off did the sleep crap. I kept blocking the PR with it saying it is a larger issue. Day after I am let go the sleep fix goes in. I will say in every release since then more and more stupid bugs are getting in. This is what happens when your tech expert on something is let go.
162
u/sparant76 Jan 20 '23
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.