structured programming Concepts

The principles of structured programming include a technique that takes a top-down design approach with block-oriented structures. A programmer will break a program’s source code into logically structured chunks. The main features, dating back to 1966, include sequencing, selection, and iteration.

A Quick Overview

Structured Programming
Programming involves the creation of a series of lines, called code, which a computer executes. The lines comprise a programBefore structured programs came to the forefront, programmers were frequently guilty of writing "spaghetti code" programs. This was due to using the "Go To" statement in programs. With the "Go To" statement, the program code would be redirected to other areas of the program. Both the Basic and Fortran programming languages had no internal structure or limitations; free form was the rule.

Principles of structured programming help define a "high level" programming language; these are human readable language codes.
The alternative are low level languages, like Assembler, which are "close" to the hardware level and are full of cryptic symbolic code.


Enter structured programming with its goal to pursue a preferred programming task to make programs produce correct results, with as little redundancy as possible. A structured programming language program is written as a series of explicit statements. It generally does not contain the "Go To" command.
Writing structured programming can be less time consuming. If there is no need to write complex classes or functions, time will not be spent in developing them. Writing classes can take up more time and energy than just writing a piece of code, which executes a specific set of commands. However, as always, this depends on the overall purpose of the program. With structured programming, the separate pieces fall into place, so long as the pieces are well defined.

No comments:

Post a Comment