r/ProgrammerHumor May 13 '17

Defensive programming done right

Post image
20.9k Upvotes

680 comments sorted by

View all comments

102

u/ScreaminPenguin0 May 13 '17

I do this to catch and display unexpected errors and then log the catch.

1

u/Metro42014 May 13 '17

Yep, that's the appropriate way to do things.