Structured Programming | Advantages and Disadvantages

Download our Android App from Google Play Store and start reading Reference Notes Offline.

structured programmingStructured Programming | Advantages and Disadvantages
Object Oriented Programming (OOP)
Third Semester | Second year
BSc.CSIT | Tribhuvan University (TU)

Structured Programming
The structured programming paradigm is a sub discipline of procedural programming under the category of imperative programming paradigm. Most of the present day procedural programming language include the features that encourages structured programming. It was first proposed by two mathematicians Corrado Bohm and Guiseppe Jacopini who proposed and demonstrated that a computer program may contain just three structures namely decisions, sequences and loops.

Any program can be created by breaking large programs into smaller modular routines and imposing these logical structures. That is why this paradigm is also sometimes known to follow the concepts of modular programming. This paradigm generally follows the top down approach where the complex programming blocks are broken down into smaller blocks maintaining a well defined structure and organization of the overall program. It discourages the use of global variables and instead encourages to use variables that are local to each of the blocks.

This paradigm follows the principle of divide and conquer. A solution of a problem can be said to consist of a set of tasks, on the same lines, a program can also be designed to perform a set of tasks by dividing it into the task performing blocks.

Advantages

  • Complexity can be reduced using the concepts of divide and conquer.
  • Logical structures ensure clear flow of control.
  • Increase in productivity by allowing multiple programmers to work on different parts of the project independently at the same time.
  • Modules can be re-used many times, thus it saves time, reduces complexity and increase reliability.
  • Easier to update/fix the program by replacing individual modules rather than larger amount of code.
  • Ability to either eliminate or at least reduce the necessity of employing GOTO statement.

Disadvantages

  • Since Goto statement is not used, the structure of the program needs to be planned meticulously.
  • Lack of encapsulation
  • Same code repetition
  • Lack of information hiding.
  • Change of even a single data structure in a program necessitates changes at many places throughout it, and hence the changes becomes very difficult to track even in a reasonable sized program.
  • Not much reusability of code.
  • Can support the software development projects easily up to a certain level of complexity. If complexity of the project goes beyond a limit, it becomes difficult to manage.

Posted By : Digvijay | Comment RSS | Category : Third Semester
Tag : ,

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

Wordpress DMCA
Community | Toolbar | Android App | Founder/Developer : Hari Prasad Chaudhary | CSIT Portal Manager : Digvijay Chaudhary