Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re: Flowchart generator from Perl source code.

by BillKSmith (Vicar)
on Aug 16, 2012 at 02:09 UTC ( #987678=note: print w/replies, xml ) Need Help??

in reply to Flowchart generator from Perl source code.

My experience with other languages is that machine generated flow charts are seldom useful for anything but satisfying a customer requirement for a flow chart. They must be isomorphic with the code. This is not at all the same as a hand drawn chart, where its designer comunicates his understanding of the code (often by intentionally omiting details.)

I believe that formatting your code with the CPAN utility perltidy would be more useful than rearranging the code into a flow chart. Clearly, this is a matter of opinion which you must decide for yourself.

  • Comment on Re: Flowchart generator from Perl source code.

Replies are listed 'Best First'.
Re^2: Flowchart generator from Perl source code.
by Anonymous Monk on Aug 16, 2012 at 03:44 UTC
      You can even involve sqlt, after all UML is schema :)

      Flow charts can be an excelent way to document our understanding of a program. No utility can possibly do this for us. Use any tool(s) that you find useful.

      I suggest perltidy as a substitute for a flow chart program only in the sense that both are intended to reveal the structure of the code. I find it easier to grasp that structure from systematically indented code rather than from machine generated charts which spread the same information over several times as many pages. Again, my advice is use what works for you!

        When I have a bunch of scripts that do stuff , what I from a flowchart is the calling order and class relationships -- perltidy doesn't help with either of those tasks

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://987678]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2018-05-26 06:27 GMT
Find Nodes?
    Voting Booth?