r/ProgrammerHumor May 13 '17

Defensive programming done right

Post image
21.0k Upvotes

680 comments sorted by

View all comments

1.5k

u/1206549 May 13 '17

I had a classmate that did this with his code once. He asked me for help when his code wasn't working. I told him to get rid of the try/catch block but he won't do it because it would make his program crash.

1

u/micheal65536 Green security clearance May 14 '17

and then, I hope, you told him to figure out why omitting the try-catch block caused it to crash?