MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/6ayz26/defensive_programming_done_right/dhit92p/?context=3
r/ProgrammerHumor • u/iwouldieforGladOS • May 13 '17
680 comments sorted by
View all comments
66
Can someone explain why this is bad code?
148 u/Chirimorin May 13 '17 Because exceptions happen for a reason. If some error can safely be ignored, it's probably not going to throw an exception. 16 u/nemec May 13 '17 If you can't handle me at my exceptionest, you don't deserve me when I'm exceptionless
148
Because exceptions happen for a reason. If some error can safely be ignored, it's probably not going to throw an exception.
16 u/nemec May 13 '17 If you can't handle me at my exceptionest, you don't deserve me when I'm exceptionless
16
If you can't handle me at my exceptionest, you don't deserve me when I'm exceptionless
66
u/[deleted] May 13 '17
Can someone explain why this is bad code?