Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Flowchart generator from Perl source code.

by BillKSmith (Chaplain)
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.
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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://987678]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (15)
As of 2014-08-28 12:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (259 votes), past polls