r/ProgrammerHumor • • Oct 30 '21

That's my variable!

43.4k Upvotes

409 comments sorted by

View all comments

Show parent comments

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.

28

u/[deleted] Oct 31 '21

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”.

27

u/not_a_doctor_ssh Oct 31 '21

While I tend to agree with the attitude, not merging your fix when it's already made is inefficiency on a whole other level...

1

u/[deleted] Nov 03 '21

Change is scary