I believe most people fall into one of 3 categories:
- Error-checking… what’s that?
- Well… if I HAVE to.
- Error-check ALL the things!!!
I myself generally fall into the third category. I assume that if there’s even the most remote possibility of divine intervention, someone will find a way to cause an error, so I try to do something of that sort.
The problem with my approach, is that I sometimes finding my function becoming bogged down with conditionals and loops and whatnot for purposes of error-checking and validation… Enough so that it can sometimes interfere with clarity of my function’s purpose.
How about you all?