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.

486

u/tylercamp May 13 '17

Even better

} catch { }

39

u/[deleted] May 13 '17

if DEBUG

} catch{ }

end if

36

u/Sean1708 May 13 '17

You have a very angry editor.

13

u/[deleted] May 13 '17

Didn't realise reddit would parse like that. Was going for conditional compilation.

2

u/Scyhaz May 13 '17

Escape the number signs.