views:

233

answers:

3

In college I learned how to use UML to document OO applications. In the real world I've been tasked with documenting an old procedural program, essentially re-creating the design specification documents that have gone missing.

Are there any "standard" documents or methods similar to UML for documenting procedural code? I'm sure there must be something that people used before UML.

Thanks!

+1  A: 

You could use PSD(process structure diagrams) or NSD (Nassi Schneiderman Diagrams). I had to learn it for my first lessons of programming, before diving into OO and Java. It doesn't cover different aspects as UML, but it's starting point to visualize a procedural program.

Tuxified
+1  A: 

Remember what UML stands for Unified Modeling Language. It's not just for modeling Object Relations, which I believe is a common misconception of UML. It can also be used for state diagrams, business processes, database schemas, ... See : http://en.wikipedia.org/wiki/Unified_Modeling_Language .

I recently used IBM's Rational Software Architect to convert State Diagrams into Perl. But for Perl we had to write our own translation files since Architect didn't include them for Perl.

But if you are talking about C code, Architect has a built in feature to reverse engineer written code into a UML diagram. I've used that feature for Java and it works pretty well and creates a Object Diagram. I haven't used it for C before, so I don't know if it will turn it into a Sequence, Activity or State Diagram.

You can download the trial version of Software Architect and see if it works for your code.

eSniff
...and there are a number of other UML tools out there with free 'community' editions that might give you a taste. I've used the free version of Poseidon for this specific purpose several times.
DaveE
A: 

Yes. Flowcharts.

Paul Nathan
Ended up going this route.
jrm82