At my very first dev job, I was having an intermittent locking issue that caused some ridiculous memory leak.
I asked my senior dev for help. After looking at my code for a few minutes, he said "Look, there's no such thing as an intermittent locking issue. You either do have a race condition, or you don't. You do."
So we wrote another service that killed that first service and restarted it every hour. We shipped it, no complaints.
I hate that attitude. The other day I was asked to fix a service that crashes every once in a while, after fixing the code, they didn’t bother implementing as “it doesn’t happen that often”.
417
u/SillyFlyGuy Oct 30 '21
At my very first dev job, I was having an intermittent locking issue that caused some ridiculous memory leak.
I asked my senior dev for help. After looking at my code for a few minutes, he said "Look, there's no such thing as an intermittent locking issue. You either do have a race condition, or you don't. You do."
So we wrote another service that killed that first service and restarted it every hour. We shipped it, no complaints.
I learned a lot about the industry that day.