I used to be a student of the ``Defensive Programming'' school of programming. I'm mainly a C programmer, but I occasionally dabble in languages such as LISP. Anyways, whenever I would program in C, I would program very defensively, and check that all the arguments passed to every function were not NULL (assuming they were pointers. This turned my code into mostly a bunch of if statements.
After a while, I figured out that this was pointless, and most of the functions I write today, I don't bother checking if the arguments are NULL or not, because only a smart fucker such as myself is going to be using them. I instinctively know when everything is NULL or not. Of course, I do still check the arguments sometimes, but definitely not in every function. It just turns into a mess.
What do you guys do? Am I a retard, or are you similar?
>>58
I chuckled while I snorted while I loled while I stared humorlessly.
Name:
Anonymous2008-09-17 6:08
Back in Croatia, my mother country, we have a saying about programs. The saying goes that programs without error checking are equivalent to programs with error checking, but with error checking disabled. The moral of the saying is that the user has no way of knowing if a program has or has not error checking. Much like how Schroedinger's cat may or may not be alive inside that box, you have no way of knowing.