Page 1 of 1

Funky /*, */, // comment trick

PostPosted: Aug 19, 2003 @ 4:47pm
by Dave Johnston

PostPosted: Aug 19, 2003 @ 4:59pm
by Digby

PostPosted: Aug 19, 2003 @ 5:03pm
by Dave Johnston

Commenting vs. Conditional Compilation

PostPosted: Aug 21, 2003 @ 4:50pm
by mlepage

PostPosted: Aug 21, 2003 @ 7:31pm
by Digby
If someone comments out a section of code and doesn't add a textual comment saying why the code is commented out, I would assume it's not because this is sample code. The programmers that are anal enough to go about decorating their source with sample code are the same type of people that put text in the sample explaining this. At least, that's what I've seen in my 15 years of being a software engineer.

PostPosted: Aug 21, 2003 @ 7:43pm
by Dave Johnston
I knew there were to be names associated with commenting styles, but I'd never seen conditional comments before, so was quite surprised when I 'invented' them myself!

They are pretty ugly IMO - even with descriptive text, the syntax of conditional commenting is untidy and as every programmer knows (but rarely abides to), good code is clean code :) The commenting symbols have no structure - at least with a slash-star you know there has to be a star-slash somewhere else for it....

Clarification

PostPosted: Aug 21, 2003 @ 8:41pm
by mlepage

PostPosted: Aug 22, 2003 @ 7:26pm
by Guest

PostPosted: Aug 22, 2003 @ 7:29pm
by Guest

PostPosted: Aug 22, 2003 @ 11:13pm
by Pejo Software - Per