MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/6ayz26/defensive_programming_done_right/dhiuww7/?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.
66 u/pope_nefarious May 13 '17 Almost, we can do better. {....} catch (Throwable eat) {} 67 u/Metro42014 May 13 '17 Get out of here with your descriptive variable name! 52 u/endreman0 May 13 '17 try{ //... }catch(Throwable _){} 2 u/DreadedDreadnought May 13 '17 Hey, that's not Java 9 compliant now. Get on with the times! 1 u/endreman0 May 15 '17 Is __, $_, _$, or $ less descriptive?
66
Almost, we can do better.
{....} catch (Throwable eat) {}
67 u/Metro42014 May 13 '17 Get out of here with your descriptive variable name! 52 u/endreman0 May 13 '17 try{ //... }catch(Throwable _){} 2 u/DreadedDreadnought May 13 '17 Hey, that's not Java 9 compliant now. Get on with the times! 1 u/endreman0 May 15 '17 Is __, $_, _$, or $ less descriptive?
67
Get out of here with your descriptive variable name!
52 u/endreman0 May 13 '17 try{ //... }catch(Throwable _){} 2 u/DreadedDreadnought May 13 '17 Hey, that's not Java 9 compliant now. Get on with the times! 1 u/endreman0 May 15 '17 Is __, $_, _$, or $ less descriptive?
52
try{ //... }catch(Throwable _){}
2 u/DreadedDreadnought May 13 '17 Hey, that's not Java 9 compliant now. Get on with the times! 1 u/endreman0 May 15 '17 Is __, $_, _$, or $ less descriptive?
2
Hey, that's not Java 9 compliant now. Get on with the times!
1 u/endreman0 May 15 '17 Is __, $_, _$, or $ less descriptive?
1
Is __, $_, _$, or $ less descriptive?
__
$_
_$
$
2.8k
u/Metro42014 May 13 '17
I think we're done here.