1.6 Traditional and Structured Programming

 Traditional and Structured Programming
    
   Structured programming is a programming paradigm aimed at improving the clarity, quality, and development time of a computer program by making extensive use of subroutines, block structures, for and while loops|in contrast to using simple tests and jumps such as the goto statement which
could lead to "spaghetti code" causing difficulty to both follow and maintain.

It is possible to do structured programming in any programming language, though it is preferable to use something like a procedural programming language. Some of the languages initially used for structured programming include: ALGOL, Pascal, PL/I and Ada - but most new procedural programming languages since that time have included features to encourage structured programming, and sometimes deliberately left out features - notably GOTO - in an effort to make unstructured programming more difficult. Structured programming (sometimes known as modular programming) is a subset of imperative programming that enforces a logical structure on the program being written to make it more efficient and easier to understand and modify.

No comments:

Post a Comment