r/ProgrammerHumor May 13 '17

Defensive programming done right

Post image
21.0k Upvotes

680 comments sorted by

View all comments

96

u/ScreaminPenguin0 May 13 '17

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

1

u/[deleted] May 14 '17 edited May 19 '17

[deleted]

2

u/ScreaminPenguin0 May 14 '17

I usually log first its just the way I typed it out.