Thu, 24 May 2007
Comment-free code
Often looking through old code you find yourself wishing for more comments, or even more correct comments. Rarely, less comments.
But looking at some code I'm debugging at the moment at work I found the following bizarre idiom (details changed to protect the afflicted) ...
#ifdef DOC C Some fortran comments. C Yes, ordinary comments, nothing fancy like preprocessor directives, but if you want C your code without a paragraph explaining what it does, you can just preprocess it C and remove it. C C Perhaps they'd expected that their fellow developers would write essays in the C source code that would make it hard to follow, but then, you'd still need to edit C the full source code to debug and develop it, right? C #endif
Posted by flemthalley at Wed Nov 2 14:09:04 2011
Posted by JatThashacout at Fri Dec 30 06:45:39 2011
Posted by SamPafgralm at Fri Dec 30 07:12:30 2011
Posted by Fiplepemo at Fri Dec 30 07:44:19 2011
Posted by Avareetheseat at Fri Dec 30 08:06:42 2011
Posted by saloamiseanny at Fri Dec 30 08:28:22 2011
Posted by NundSeittee at Fri Dec 30 08:38:19 2011
Posted by RomeokeJeta at Sun Feb 12 09:30:13 2012