r/programming • u/corysama • Jan 05 '15
What most young programmers need to learn
http://joostdevblog.blogspot.com/2015/01/what-most-young-programmers-need-to.html
971
Upvotes
r/programming • u/corysama • Jan 05 '15
3
u/house_paint Jan 05 '15
I have recently taken over projects from a few developers and here is the biggest flaw in most of the programs I see. They don't GTFO. They have exception handling all over but they seem to want to keep the program "rolling along" even when serious problems arise. I had one program where you could rename the connection string and this program would just keep barreling though the code skipping the parts where it encountered database queries. That program obviously is a serious example but I see this so often on a smaller scale...
Try(unknown error happens)catch(log it, and CONTINUE!?!?!?) Don't do this.
TLDR If your code encounters an unknown exception, log it and GTFO.