views:

83

answers:

4

I have just recently been asked to document 10 years worth of VB6 development done by one person. It's been some time since I looked at VB6 code myself, so I'm basically wondering if anyone has any tips for how best to go about it.

Is there any good software, free or not, which would do something similar to javadoc out there for VB6, that could be helpful?

Or just if anyone have any suggestion for tools / methods on how to do this. Any tip would be greatly appreciated.

+1  A: 

I used to code in VB6 a loooong time ago, and I never encountered any decent tools that helped with documentation in the Javadoc sense.

I would approach this from the angle of what needs to be documented: is it for developers to understand the API or is it for a user to work with the application? Assuming the former, then what is the bare minimum that you can get away with such that a developer can follow what is going on? You may be able to avoid documenting every method, and just provide a general hand waving use case based approach that could be separate from the code entirely and be based on your explorations. A few good diagrams goes a long way to transferring understanding.

If it is for the user to work the application, then you're into the realms of the help compiler. You might be lucky and find one of this lot is still available: http://help-compiler.qarchive.org/

Alternatively, if it must be the equivalent of Javadocs or you don't get paid, then you may want to consider writing a tool to scan over the source code and do a large portion of the boilerplate parameter filling for you. A tool like Unix AWK can really help here.

Gary Rowe
Some good tips here, and food for thought. Thank you. I am thinking I need to write a javadoc similar doc for devs, and then also a few good diagrams for people working with the server structures. Would you happen to have any good diagram writing tips (applications)? I always end up spending a lot of time making it manually. I know that's really another big thread in itself though.
cc0
@cc0 In the Microsoft world the king of diagrams is Visio but prepare for open wallet surgery. If you're feeling bold you could look at Graphviz (http://www.graphviz.org/Gallery.php) which allows you to compile diagrams from plain text and is supported directly within the Confluence wiki. Otherwise, you'll need to ask your client what format they'd like the docos in and work to that.
Gary Rowe
@Gary - great tip, I have never worked with Visio before, but it seems this might be the time to start looking into it, I will also check out the other one, so thank you :]
cc0
+1  A: 

Our VBdocman does exactly what you need. It uses javaDoc comments and it can generate several output formats.

Peter Macej
Thank you, I will definitely have a look at that.
cc0
+1  A: 

You can try VBDox, which is a free VB6 source code documentation generator.

Kelly Ethridge
Will do, thank you for that tip, I was hoping to find something free.
cc0
+1  A: 

You may find my add-in, AtomineerUtils helpful. It can generate and update JavaDoc, Doxygen and Xml-Documentation comments in source code (Visual Basic, C#, C++/CLI, C++, C, Java), and you have a lot of control over the format it produces.

(You could say it generates the "boilerplate" documentation for you, but it generates a lot more than just a basic boilerplate skeleton - it fills in as much detail as possible to minimise the amount of additional documentation you need to write)

So it doesn't create external documentation from the comments (like JavaDoc), it creates the comments themselves - so you would still need another tool to generate the external documentation. However, AtomineerUtils would save a lot of time if you have to generate new documentation comments for existing (undocumented) code, or if you already have the code commented/documented in a Javadoc style, AtomineerUtils can process the documentation comments to convert them to Doxygen or XML Documentation formats, which may help you to gain compatibvility with other tools (Sandcastle, etc) that can build external documentation for you.

To generate the external documentation from source-code comments, Doxygen is a leading (and free) external-documentation generation tool that can build documentation from JavaDoc, Doxygen or Dcoumentation-XML format documentation-comments, and is well worth trying out.

Jason Williams
Excellent, I will try this. I already tried the VBDocman suggested above, but wasn't completely happy with the output. Thank you.
cc0