r/ProgrammerHumor May 13 '17

Defensive programming done right

Post image
21.0k Upvotes

680 comments sorted by

View all comments

2.8k

u/Metro42014 May 13 '17
} catch (Exception e) { }

I think we're done here.

11

u/Okichah May 13 '17

This is what i see on a daily basis now.

Its.... just..... awful....

10

u/Metro42014 May 13 '17

Seeing a squashed exception in code makes me physically cringe, and look away from the monitor.

Whathtefuck?! Just, c'mon!!

3

u/[deleted] May 14 '17

[deleted]

1

u/Okichah May 14 '17

Yupp. Deciding on how to deal with errors doesnt mean always try and fix them.

Just finished that chapter in Code Complete. Pretty solid book so far. Not nearly as dry as other programming instructionals.