The goal of structured programming

Started by sukishan, Jul 12, 2009, 06:04 PM

Previous topic - Next topic

sukishan

The goal of structured programming is to create correct programs that are easy to write, understand and change.

* Easy to writeModular design increases the programmer's productivity by allowing them to look at the big picture first and focus on details later. Several Programmers can work on a single, large program, each working on a different module. Studies show structured programs take less time to write than standard programs. Procedures written for one program can be reused in other programs requiring the same task. A procedure that can be used in many programs is said to be reusable

* Easy to debugSince each procedure is specialized to perform just one task, a procedure can be checked individually. Older unstructured programs consist of a sequence of instructions that are not grouped for specific tasks. The logic of such programs is cluttered with details and therefore difficult to follow.

* Easy to UnderstandThe relationship between the procedures shows the modular design of the program.Meaningful procedure names and clear documentation identify the task performed by each module. Meaningful variable names help the programmer identify the purpose of each variable.

* Easy to ChangeSince a correctly written structured program is self-documenting, it can be easily understood by another programmer.
A good beginning makes a good ending