Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I am doing out some flow charts and am wondering if I am approaching this correctly. In essence, I have several method calls and I am flowcharting each separately. However, several of these methods make a method call for some info and then continue. See this example:

enter image description here

I have 3 other methods that also call GetQueue() and I am wondering if I am representing this correctly. The AddQueue() flow visually looks like it is broken.

NOTE: Changes made in my flowchart:

enter image description here

share|improve this question
    
Is this level of pictorial detail really necessary? I know that, at one time, flowcharts like this were popular, but they seem to have fallen out of favor nowadays for many reasons... Essentially they are a redundant form of documentation; you have to keep them up to date, and the code should already adequately represent what is shown in the flowchart anyway (meaning: the time is better spent producing more code). –  Robert Harvey May 12 '11 at 17:45
    
It was requested of me before I move on to another client. –  Keith Barrows May 12 '11 at 18:32
    
@Robert Harvey: Flowcharts were useful in the old days, when people wrote machine or assembler code directly. They may have been useful to early FORTRAN and BASIC programmers, who didn't have a good array of control structures. Nowadays, well, the only reason I'd do them is if a client wanted them as a deliverable and was willing to pay me adequately. –  David Thornley May 12 '11 at 20:08
    
When developing these from scratch I have found it very helpful to use yellow stickies, turning the 90 degrees for decisions. This lets you move them around and insert processes inbetween. When you are all don, then enter them into your software. –  Cape Cod Gunny May 12 '11 at 22:33
    
I still use flowcharts occasionally, although I find unit test are often better for the same purpose. They aren't deliverables, though; I use them to get a control flow right in my head. –  Michael K May 13 '11 at 13:20

1 Answer 1

up vote 4 down vote accepted

Use a subroutine symbol for the method call (predefined process)

enter image description here

share|improve this answer
    
I added a new image to my question - is that how you meant? –  Keith Barrows May 12 '11 at 18:33
    
@Keith: Perfect. –  Robert Harvey May 12 '11 at 18:37

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.