Obsessive-Complusive Disorder
Posted: Wed Apr 03, 2013 10:11 pm
Just out of curiosity, does anyone have this or symptoms of it?
I don't clinically have OCD, but I do have some OCD symptoms such as keeping my room clean of things on the floor, straightening certain things in my house when I notice it, or making sure things are straight at all. I don't however have OCD symptoms such as having to lock a door a certain number of times or having to wash my hands a certain number of times (though I hate it when my hands aren't clean).
I don't clinically have OCD, but I do have some OCD symptoms such as keeping my room clean of things on the floor, straightening certain things in my house when I notice it, or making sure things are straight at all. I don't however have OCD symptoms such as having to lock a door a certain number of times or having to wash my hands a certain number of times (though I hate it when my hands aren't clean).
I will check everything that may be out of range. Divide A by B ? Check that B is not 0. Square root? Check the value is actually positive. Dereference a pointer? Check it for NULL. Everything this way, always. However it is useful to write robust applications. Moreover, I find out that very often when I want to write check code it is not necessary because I can prove that the case can't happen, because it has been checked naturally for special cases. For example, I want to do something on the current object. I have to check that the pointer to the object is not NULL, but that case means that there is no current object, which has already been checked before. This means that the program is well-constructed