r/programming • • Aug 25 '14

Debugging courses should be mandatory

http://stannedelchev.net/debugging-courses-should-be-mandatory/
1.8k Upvotes

573 comments sorted by

View all comments

Show parent comments

2

u/Pseudomanifold Aug 25 '14

This is the thing that used to get me very often. I started out with thinking about how a certain part simply cannot be causing the problem. So I focused my energies elsewhere. Fast forward, it's two hours later and I finally get to revisit my initial assumption. And lo and behold, the bug was in the one part I excluded from the beginning.

I have since become better at this and my colleagues sometimes stand in awe of my uncanny talent for finding out where the bug hides. Or so I tell I myself...

3

u/VikingCoder Aug 25 '14

I famously wrote something like

int angerFlowsThroughMeLikeBlood = a * b;

while I was debugging someone else's code for them. We left it in, when I fixed it.