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.

249

u/[deleted] Jul 20 '18

Too often

Encounters error

Stops debugging, returns to code

After a moment of thinking, realizes the lack of collected data, and starts debugging again to check out the same error

17

u/[deleted] Jul 20 '18

Pretty much every time.

17

u/[deleted] Jul 20 '18

The error isn't there anymore.

The error continues to appear once in a blue moon for years and nobody knows why

24

u/[deleted] Jul 20 '18

My defense is I make sure I actually built/ran it properly. You don't want to go start changing things until you are 100% sure the error is real and not left over because you forgot to save a file or an ide (NetBeans...) didn't want to clean out the old built folder.

10

u/Exit42 Jul 20 '18

mvn clean purge nuke install

21

u/corner-case Jul 20 '18

Gamma testing FTW.

20

u/[deleted] Jul 20 '18

Fix one bug, cause 3 more.

Can't cause 3 more if you don't fix the first one. taps head

3

u/Stegaosaurus Jul 20 '18

You underestimate my power.

4

u/[deleted] Jul 21 '18

Don't try it...

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.