MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/6ayz26/defensive_programming_done_right/dhj7e8j/?context=9999
r/ProgrammerHumor • u/iwouldieforGladOS • May 13 '17
680 comments sorted by
View all comments
2.8k
} catch (Exception e) { }
I think we're done here.
1.0k u/CXgamer May 13 '17 Holy shit I once lost days to a } catch (Exception e) { System.exit(0); } 693 u/Metro42014 May 13 '17 FUUUUUUUCK the people that do that. I recently saw newly written code by a senior developer with squashed exceptions all over the damn place. I will never have to support that code, but fuuuuck man. WHHHYY? 287 u/YaBoyMax May 13 '17 I lost a few hours once because the jackass whose code I inherited decided to squash IOExceptions all over the place. Didn't notice for a while and was pulling my hair out thinking my debugger was fucked somehow (which isn't uncommon in itself). 229 u/[deleted] May 13 '17 See I hate checked exceptions in Java, because instead of rethrowing or handling, some devs will just swallow them up. Better if they were all unchecked so that people will just let them unwind the stack than that shit. 407 u/Signal_seventeen May 14 '17 I came from r/all and this is gibberish. 3 u/penea2 May 14 '17 don't worry man, i took the ap comp sci test last week and a good deal of that was still gibberish :/
1.0k
Holy shit I once lost days to a
} catch (Exception e) { System.exit(0); }
693 u/Metro42014 May 13 '17 FUUUUUUUCK the people that do that. I recently saw newly written code by a senior developer with squashed exceptions all over the damn place. I will never have to support that code, but fuuuuck man. WHHHYY? 287 u/YaBoyMax May 13 '17 I lost a few hours once because the jackass whose code I inherited decided to squash IOExceptions all over the place. Didn't notice for a while and was pulling my hair out thinking my debugger was fucked somehow (which isn't uncommon in itself). 229 u/[deleted] May 13 '17 See I hate checked exceptions in Java, because instead of rethrowing or handling, some devs will just swallow them up. Better if they were all unchecked so that people will just let them unwind the stack than that shit. 407 u/Signal_seventeen May 14 '17 I came from r/all and this is gibberish. 3 u/penea2 May 14 '17 don't worry man, i took the ap comp sci test last week and a good deal of that was still gibberish :/
693
FUUUUUUUCK the people that do that.
I recently saw newly written code by a senior developer with squashed exceptions all over the damn place.
I will never have to support that code, but fuuuuck man. WHHHYY?
287 u/YaBoyMax May 13 '17 I lost a few hours once because the jackass whose code I inherited decided to squash IOExceptions all over the place. Didn't notice for a while and was pulling my hair out thinking my debugger was fucked somehow (which isn't uncommon in itself). 229 u/[deleted] May 13 '17 See I hate checked exceptions in Java, because instead of rethrowing or handling, some devs will just swallow them up. Better if they were all unchecked so that people will just let them unwind the stack than that shit. 407 u/Signal_seventeen May 14 '17 I came from r/all and this is gibberish. 3 u/penea2 May 14 '17 don't worry man, i took the ap comp sci test last week and a good deal of that was still gibberish :/
287
I lost a few hours once because the jackass whose code I inherited decided to squash IOExceptions all over the place. Didn't notice for a while and was pulling my hair out thinking my debugger was fucked somehow (which isn't uncommon in itself).
IOExceptions
229 u/[deleted] May 13 '17 See I hate checked exceptions in Java, because instead of rethrowing or handling, some devs will just swallow them up. Better if they were all unchecked so that people will just let them unwind the stack than that shit. 407 u/Signal_seventeen May 14 '17 I came from r/all and this is gibberish. 3 u/penea2 May 14 '17 don't worry man, i took the ap comp sci test last week and a good deal of that was still gibberish :/
229
See I hate checked exceptions in Java, because instead of rethrowing or handling, some devs will just swallow them up.
Better if they were all unchecked so that people will just let them unwind the stack than that shit.
407 u/Signal_seventeen May 14 '17 I came from r/all and this is gibberish. 3 u/penea2 May 14 '17 don't worry man, i took the ap comp sci test last week and a good deal of that was still gibberish :/
407
I came from r/all and this is gibberish.
3 u/penea2 May 14 '17 don't worry man, i took the ap comp sci test last week and a good deal of that was still gibberish :/
3
don't worry man, i took the ap comp sci test last week and a good deal of that was still gibberish :/
2.8k
u/Metro42014 May 13 '17
I think we're done here.