This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Funky /*, */, // comment trick


Funky /*, */, // comment trick

Postby Dave Johnston » Aug 19, 2003 @ 4:47pm

User avatar
Dave Johnston
pm Insider
 
Posts: 356
Joined: Mar 31, 2002 @ 6:14pm
Location: UK


Postby Digby » Aug 19, 2003 @ 4:59pm

Digby
pm Insider
 
Posts: 1011
Joined: Apr 29, 2001 @ 1:53pm


Postby Dave Johnston » Aug 19, 2003 @ 5:03pm

User avatar
Dave Johnston
pm Insider
 
Posts: 356
Joined: Mar 31, 2002 @ 6:14pm
Location: UK


Commenting vs. Conditional Compilation

Postby mlepage » Aug 21, 2003 @ 4:50pm

User avatar
mlepage
pm Insider
 
Posts: 1050
Joined: Aug 3, 2003 @ 4:47am
Location: Canada


Postby Digby » Aug 21, 2003 @ 7:31pm

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.
Digby
pm Insider
 
Posts: 1011
Joined: Apr 29, 2001 @ 1:53pm


Postby Dave Johnston » Aug 21, 2003 @ 7:43pm

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....
User avatar
Dave Johnston
pm Insider
 
Posts: 356
Joined: Mar 31, 2002 @ 6:14pm
Location: UK


Clarification

Postby mlepage » Aug 21, 2003 @ 8:41pm

User avatar
mlepage
pm Insider
 
Posts: 1050
Joined: Aug 3, 2003 @ 4:47am
Location: Canada


Postby Guest » Aug 22, 2003 @ 7:26pm

Guest
 


Postby Guest » Aug 22, 2003 @ 7:29pm

Guest
 


Postby Pejo Software - Per » Aug 22, 2003 @ 11:13pm

User avatar
Pejo Software - Per
pm Insider
 
Posts: 343
Joined: Apr 25, 2002 @ 1:00pm
Location: Mölndal, Sweden


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron