Generating API Documentation?
Preda asks: "I have been recently tasked with generating API documentation for new and legacy code. Given the amount of legacy code (in C, VB6, VB.NET, PHP, and other languages) and new code that needs to be documented, are there any easy auto generating API programs out there. I have done a few searches but nothing that I have found stood out as a 'use me' solution. Does anyone have any advice?"
Other than that, there's the Commentator...
Don't bother with autogeneration. First off- developers are far less likely to comment in wierd formats, or update comments in wierd formats (even when they do, its easy to typo and break the generator). You end up with out of date or missing documentation due to this. Secondly, for good documentation you need more than what an autogenerator can do anyway- good documentatition has examples, use cases, warnings and gotchas, etc. The old fashioned way is best- talk to the developers working on it, and write the documentation by hand.
I still have more fans than freaks. WTF is wrong with you people?
Commentator. Because you _know_ the coders haven't properly commented their code.
Please correct me if I got my facts wrong.
Use, web, weave and tangle, the famous tools behind Knuth's literate programming mindset.
Instead of writing code and not commenting it, you write a book on what you want your code to do, littered with examples of how it works and justifying why, and the tools somehow produces the C files and compile the library for you.
At least its something like that, the weave documentation didn't seem clear enough at the time for me to get it to do anything useful. *cough* I needed instructions not why's and because's
However it looks like folk are doing something useful with it: http://www.ox.compsoc.net/~gemini/simons/webperl/
blog.sam.liddicott.com