[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Avoid Flowcharts, Base Program Structures on Data Structures

  • From: "Costello, Roger L." <costello@mitre.org>
  • To: "xml-dev@lists.xml.org" <xml-dev@lists.xml.org>
  • Date: Sat, 19 Oct 2013 21:57:49 +0000

Avoid Flowcharts

Hi Folks,

 

Here is a brief summary of the first chapter of the Jackson Structured Design book:

Lessons Learned

Section 1.3 gives another example of a program that is written to correspond to a flowchart. The program works, and the coding is impeccable. But the structure is utterly wrong.

Avoid flowcharts. For many people it has long been an article of faith that flowcharting should precede coding. There is a kernel of important truth here: coding cannot be the first stage in building a program; it must be preceded by design. But flowcharting is not designing. Design is about structure, and flowcharts, as their name suggests, are about the flow of control. At the time when the designer should be thinking about the shape of his problem, the flowchart encourages his to think about execution of the program inside the computer. Flowcharts tend to conceal structure.

Another, more positive, lesson is that program structures should be based on data structures. There are deep underlying reasons why this is so… (he gives many reasons) …The computer system sees the world through the medium of its data structures.

The Jackson Design Technique

This is the basis of the Jackson design technique: We start by (1) considering the data structures, which we then use to (2) form a program structure. We list the executable operations needed to carry out the task, and (3) allocate each operation to a component of the program structure.

There are, of course, further steps in the design process, but these three are the first and the most important: the quality of the work we do as we take these steps will determine the quality of the programs we write.

 

-----------------------------------

“program structures should be based on data structures”

 

When you design a program, how do you base your program structures on the structures in the XML input?

 

/Roger



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.