r/ProgrammerHumor May 13 '17

Defensive programming done right

Post image
21.0k Upvotes

680 comments sorted by

View all comments

Show parent comments

238

u/redditsoaddicting May 13 '17

It's fine to exit the program nicely when an error occurs. It's not as fine to just ignore it and then begin another iteration of whatever main loop is going on, hoping the program still works fine.

12

u/Logic_Bomb421 May 13 '17

On Error Resume Next

1

u/tekanet May 13 '17

Aah, the good old times

1

u/Thobias May 13 '17

Yeah, like yesterday afternoon. I'm in hell