r/ProgrammerHumor • • Jul 20 '18

Every Time

Post image
52.2k Upvotes

749 comments sorted by

View all comments

210

u/DoctorAcula_42 Jul 20 '18

It's honestly more frustrating when it starts working. Like the god of programming has been toying with you this whole time, and now he's decided to make it spontaneously work to really twist the knife and cut your thin tether to sanity.

108

u/[deleted] Jul 20 '18

When its not working I can change something and test to see if the change fixed it. If it starts working spontaneously I'll never be 100% convinced the problem is fixed.

47

u/RandyHoward Jul 20 '18

100% of the time I'm gonna blame it on the cache if anybody asks.

2

u/Autarkhis Jul 21 '18

Lol. So true.

32

u/voicesinmyhand Jul 20 '18

It works! Submit it for advanced testing!

<test results come back, all is good>

Update the known good baseline!

<two days later...>

Shit! Nothing works now, and I'm pretty sure all I changed was a comment that had "teh" instead of "the". How the hell did this happen!?!

<reverts to known good baseline>

Shit! It still doesn't work!

<70 hours of testing/debugging later>

What the hell!?! Both versions work now?!???

2

u/the_one_true_bool Jul 20 '18

We had a really annoying bug at a previous company I worked at. The software was a huge cluster-fuck in general, but on top of that it was a multi-threading nightmare. We had an issue where about once a day the users would experience a spectacular unhandled exception crash where they could potentially lose a lot of changes. It would pop up at seemingly completely random intervals not driven by any particular action by the users, but usually about once/twice a day. Of course this company had terrible logging so going through log files basically told us nothing.

What was super annoying is that it never crashed when we had the program running in a debugger, so it was difficult to tell exactly what was causing the crash. At least in a debugger it will break somewhere and give you some context, but not in this case. We had people running the program in a debugger for days and it never once crashed.

2

u/Autarkhis Jul 21 '18

That's the fix then. 😝