September 08, 2002

Code statute of limitations

So I was doing some research on the statue of limitations for old code, and there is an interesting clause that:



Poorly written code that would be failed in first year computer languages has the right to be ridiculed and mocked indefinitely. Especially if said source code author knows better that do such silly things.

I am pretty sure this includes REALLY silly mistakes like free()ing pointers you just nullified 3 lines before. Even more so if you then do the exact same thing over 70 times in the same code. Especially when you can put a VERY simply wrapper test such as:


if( ptr )
free( ptr );


I'm sorry if I sound cranky... when friendship seems belittled when you ask a simply question.. I get that way. Of course in years from now... I will probably continue to do this, only to find out I am really criticizing myself. :)

Posted by SilverStr at September 8, 2002 03:29 PM