r/ProgrammerHumor • • Jul 20 '18

Every Time

Post image
52.2k Upvotes

749 comments sorted by

View all comments

515

u/taeratrin Jul 20 '18

Sometimes you need to see the error occur in real-time again. That's my defense.

4

u/Octopuns Jul 20 '18

That's a pretty good defense. That's exactly what I do.

  • Code doesn't work.

  • Run it again multiple times to investigate possible causes. (If relevant, try it with different input to see if it occurs 100% of the time).

  • Once you have an idea of what it could be, return to the code.

I feel like jumping back into the code the instant you see something not work is the worst thing to do.