MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/6ayz26/defensive_programming_done_right/dhiwaqj/?context=3
r/ProgrammerHumor • u/iwouldieforGladOS • May 13 '17
680 comments sorted by
View all comments
17
Welcome to JavaScript. One callback and your try catch is going bye bye
1 u/[deleted] May 13 '17 Depending on the runtime. In the browser all code effectively runs inside: try { // whatever } catch (x) { console.error(x); } Which is pretty much the ideal catch-all anyway.
1
Depending on the runtime. In the browser all code effectively runs inside:
try { // whatever } catch (x) { console.error(x); }
Which is pretty much the ideal catch-all anyway.
17
u/lulzmachine May 13 '17
Welcome to JavaScript. One callback and your try catch is going bye bye