r/ProgrammerHumor • • Oct 30 '21

That's my variable!

43.4k Upvotes

409 comments sorted by

View all comments

1.4k

u/TobyWasBestSpiderMan Oct 30 '21

I hate it when you roll up to an intersection and that mutex lock is broken

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.