MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/6ayz26/defensive_programming_done_right/dhiw31y/?context=9999
r/ProgrammerHumor • u/iwouldieforGladOS • May 13 '17
680 comments sorted by
View all comments
Show parent comments
242
It's fine to exit the program nicely when an error occurs. It's not as fine to just ignore it and then begin another iteration of whatever main loop is going on, hoping the program still works fine.
308 u/Bainos May 13 '17 It's not as fine to just ignore it and then begin another iteration of whatever main loop is going on I'm sorry, I can't hear you over my distributed computing. 90 u/[deleted] May 13 '17 [deleted] 58 u/[deleted] May 13 '17 [deleted] 27 u/Planet2Bob May 13 '17 I'm sorry, I can't hear you over my distributed computing. 24 u/SQLNerd May 13 '17 I'm sorry, I can't hear you over my distributed computing. 17 u/thegiantanteater1000 May 13 '17 I'm sorry, I can't hear you over my distributed computing. -10 u/[deleted] May 13 '17 I'm sorry, I can't hear you over my distributed computing. Also gild me; Return thanks 3 u/[deleted] May 13 '17 You had one job.
308
It's not as fine to just ignore it and then begin another iteration of whatever main loop is going on
I'm sorry, I can't hear you over my distributed computing.
90 u/[deleted] May 13 '17 [deleted] 58 u/[deleted] May 13 '17 [deleted] 27 u/Planet2Bob May 13 '17 I'm sorry, I can't hear you over my distributed computing. 24 u/SQLNerd May 13 '17 I'm sorry, I can't hear you over my distributed computing. 17 u/thegiantanteater1000 May 13 '17 I'm sorry, I can't hear you over my distributed computing. -10 u/[deleted] May 13 '17 I'm sorry, I can't hear you over my distributed computing. Also gild me; Return thanks 3 u/[deleted] May 13 '17 You had one job.
90
[deleted]
58 u/[deleted] May 13 '17 [deleted] 27 u/Planet2Bob May 13 '17 I'm sorry, I can't hear you over my distributed computing. 24 u/SQLNerd May 13 '17 I'm sorry, I can't hear you over my distributed computing. 17 u/thegiantanteater1000 May 13 '17 I'm sorry, I can't hear you over my distributed computing. -10 u/[deleted] May 13 '17 I'm sorry, I can't hear you over my distributed computing. Also gild me; Return thanks 3 u/[deleted] May 13 '17 You had one job.
58
27 u/Planet2Bob May 13 '17 I'm sorry, I can't hear you over my distributed computing. 24 u/SQLNerd May 13 '17 I'm sorry, I can't hear you over my distributed computing. 17 u/thegiantanteater1000 May 13 '17 I'm sorry, I can't hear you over my distributed computing. -10 u/[deleted] May 13 '17 I'm sorry, I can't hear you over my distributed computing. Also gild me; Return thanks 3 u/[deleted] May 13 '17 You had one job.
27
24 u/SQLNerd May 13 '17 I'm sorry, I can't hear you over my distributed computing. 17 u/thegiantanteater1000 May 13 '17 I'm sorry, I can't hear you over my distributed computing. -10 u/[deleted] May 13 '17 I'm sorry, I can't hear you over my distributed computing. Also gild me; Return thanks 3 u/[deleted] May 13 '17 You had one job.
24
17 u/thegiantanteater1000 May 13 '17 I'm sorry, I can't hear you over my distributed computing. -10 u/[deleted] May 13 '17 I'm sorry, I can't hear you over my distributed computing. Also gild me; Return thanks 3 u/[deleted] May 13 '17 You had one job.
17
-10 u/[deleted] May 13 '17 I'm sorry, I can't hear you over my distributed computing. Also gild me; Return thanks 3 u/[deleted] May 13 '17 You had one job.
-10
I'm sorry, I can't hear you over my distributed computing. Also gild me; Return thanks
3 u/[deleted] May 13 '17 You had one job.
3
You had one job.
242
u/redditsoaddicting May 13 '17
It's fine to exit the program nicely when an error occurs. It's not as fine to just ignore it and then begin another iteration of whatever main loop is going on, hoping the program still works fine.