Defensive programming done right

Image from i.redditmedia.com and submitted by iwouldieforGladOS
image showing Defensive programming done right

DefNotaZombie on May 13rd, 2017 at 17:32 UTC »

Just have the class throw all exceptions

Metro42014 on May 13rd, 2017 at 18:18 UTC »

} catch (Exception e) { }

I think we're done here.

1206549 on May 13rd, 2017 at 19:46 UTC »

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.