Structured Design
Rules of Thumb
- One function per component or subcomponent.
- Factor out each well-defined function performed by a component at the next level of abstraction.
- Minimize duplication of code.
- Limit "fan-out" (number of subcomponents for any given component to about 7.
- 7 plus or minus 2 is the number of things humans can do or remember simultaneously.
What Structure Charts Do NOT Show:
- The order in which subcomponents are called.
- Whether subcomponents are called once or repeatedly.
- The internal workings of components.
- The internal data used by components.
Structured Design Overview | Structure Charts | Rules of Thumb
Alyce Brady, Kalamazoo College