Jump to content

How should I include my name as author with a class?


cgm225

Recommended Posts

Depends on documenting program you use I suppose.

Documenting convention should be consistend across your project, that's for sure.

 

I use doxygen, and for documenting classes I use at least these two

 

@author

@version

 

 

to be honest i don't think it really matters that much. so long as people get the information it doesn't really matter what convention you use. I normally just use something neat and simple, for example:

 

/************************************************/

 

// @Author:  ###########################

// @Script:    ###########################

// @License:  ###########################

 

/************************************************/

 

... something just to put your mark on it.

 

Add / remove them as you please. only reason i add the @ is purely from seeing so many scripts with it on, became somewhat of a habbit back in the early days after seeing so many scripts with it on... i don't know wether certain software recognises it or not but I can't imagine it really mattering that much...

 

Adam

i don't know wether certain software recognises it or not but I can't imagine it really mattering that much...

 

Take a look at phpDoc, it has a defined syntax and is very usefull for larger projects.

 

Yeah, that's what I use.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.