Quote:Original post by TrueTom
If you are using Doxygen and you want better output, you should give DoxyS a try...
That's nice!
Quote:Original post by TrueTom
If you are using Doxygen and you want better output, you should give DoxyS a try...
Quote:Original post by benryvesQuote:Original post by johnhattanAt least in Visual Studio, anything after //TODO: will appear in the "Task List" tab at the bottom of the IDE, even easier to search [smile]Quote:Original post by izhbq412Instead of TODO, I use my initials (JJH). They have the advantage of appearing in no English words, so it's easy to search.
Many of my comments are several lines long, explaining the principle behind the code. I used to write a header of comments above the implementation of every function, but as I got more experienced I discovered that most of the funcions were self-explanatory and no comments were necessary. So now I just put a line of //----------... between the implementations, and the comments, if any, go in the header file.
I also use the // TODO: and // HACKHACK: prefixes.
Writing a brief comment above an unusual piece of code goes without saying.
Quote:Original post by Anonymous PosterQuote:Original post by Rob LoachI don't really understand why anyone would want to use a commenting style that is as bloated as XML. Javadoc, Doxygen, Natural Docs etc. generate comments using a much simpler notation which is readable even without passing it through a parser. This seems like a clear advantage to me. Could someone who likes XML comments explain to me: Why?
I use XML In-Code Documentation.
int f(){ return 0;}
/** * A do-nothing function that just returns zero. */int f(){ return 0;}
Quote:Original post by Bregma
I admit that would be hard to read without a parser.
Quote:Original post by Anonymous Poster
I think you misunderstood me. I said that Doxygen uses commenting style which *is* readable without a parser, and even saw this as an advantage (well, duh).
Quote:Original post by Bregma
So you agree the pro-XML camp is squirrelly.
If you're looking for more evidence of mental incopentence, consider those languages (C#, J2EE) which embed directives as XML in comments. What next, adding $JOB and //DATA to your stack of punchcards? Some people shouldn't be let near a design lab. At least not without meds that haven't yet reached their expiry date.
Quote:Original post by Boder
Natural Docs have really impressed me.
Check out the Photon Documentation
/**********************\| class: name || description: ... || ... || ... |\**********************/
//-[Function: name//-[Description: ...// ...//-[Arguments/Return Value: ...