How Did It Ever Work?

One of the humorous emails that turns up in my inbox every once in a while is entitled “The six stages of debugging” and reads as follows:

  1. That can’t happen.

  2. That doesn’t happen on my machine.

  3. That shouldn’t happen.

  4. Why is that happening?

  5. Oh, I see.

  6. How did that ever work?

As with most humor, it’s funny because it’s based in truth. In particular, it’s not at all unusual to find yourself thinking “How did that ever work?” after you’ve completed your diagnosis.

If you do find yourself thinking this, pause for a moment. It’s a good sign that you haven’t really fully understood all the possible implications of the bug. Keep going until you understand how it did ever work—there’s an excellent chance that you ...

Get Debug It! now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.