Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Code Documentation, A better way?
dexter
post Jul 9 2005, 03:39 PM
Post #1


Advanced Member
*******

Group: Members
Posts: 142
Joined: 24-December 04
From: Queensland, Australia
Member No.: 2,902



This is not so much a question, actually, but a bit of a plug for an interesting tool I've discovered recently.

Anyway. How does everyone else document their code? Are in-source comments sufficient? Do you write extra detailed documentation outside of the code? Or do you generate external documentation from the code?

Since I've been doing Java recently, I was in awe when I discovered javadoc. An incredible tool that allows you to generate external documentation for your code from your comments in-source.

The syntax is reasonably simple, allowing the comments to be readable in and out of the source code.

And so, I set off in search for a similar tool for C/C++. And what do I find? Doxygen. Incredible. I've already gone through and re-commented some of my reasonably completed code to include this style of commenting. Fantastic results. Instead of text documents laid out the best I can, this tool can generate all the documentation from the code in a few different styles (HTML, LaTeX, man, etc.).

Mind you, doxygen can handle:

QUOTE(doxygen.org)
C++, C, Java, Objective-C, IDL (Corba and Microsoft flavors) and to some extent PHP, C#, and D


Support for more languages is on the way. Also, the code has been re-worked to make it easy for developers to add support for different languages.

I seriously am never going to write external documentation for my code ever again.

And an additional question to the ones I asked above, if you do generate the code with a tool similar tool to this, what tool do you use?

I'm done plugging. Off to go re-document some more code... ph34r.gif
Go to the top of the page
 
+Quote Post
osknockout
post Jul 12 2005, 11:53 PM
Post #2


Super Member
*********

Group: Members
Posts: 399
Joined: 14-November 04
From: Elysium
Member No.: 2,280



Hello once again dexter.
In source comments should be sufficient. or you can always 'read the (expletive) manual' as Linus Torvalds used to say.

Actually there was a UNIX tool that did that did the same thing as your javadoc thingy way back, only reason I know because I look through my install packages for Linux. Of course it was just plain text, but how hard could it be to re-port it? laugh.gif
QUOTE
I seriously am never going to write external documentation for my code ever again.

Obviously you have never seen Freeciv code or you're crazy.

I'll find the tool someday... right now, I'm off and away.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. C Code, Can U Solve This?(22)
  2. Simple C File Handling In Action(4)
  3. Prob With My C Code(4)
  4. Source Code For Paint Like Program Under Dos In C(2)
  5. Wolfenstein Source Code Now In Public Domain(3)
  6. A Telephone Directory Source Code In C(2)
  7. C++ Roman Numeral Conversion Code Help(5)
  8. Most Efficient Code To Get Prime Numbers(7)


 



- Lo-Fi Version Time is now: 13th October 2008 - 02:37 AM