Disadvantages of Structured Programming

Structured programming can indeed produce neat code albeit with a lot of effort. The manner in which it is applied also allows for the writing of code that is not organized. The approach itself does not impose any guidelines or rules that make it necessary for order. Structured programming has several other disadvantages; the lack of encapsulation, longer code and lack of information hiding. Encapsulation is a technique that groups related concepts together and allows them to be referred to using a single name. It allows for code to reduce repletion in code and replace them with call to a function. The function is thus the basic unit of encapsulation and also abstraction. Abstraction allows the details of the implementation to be hidden and only expose the interface. Information hiding isolates different parts of a program such that changes to a section do not have to affect other parts.

  1. The lack of encapsulation in structured programming results in longer programs due to the repletion of code in several places within a single program.
  2. This long code in turn makes it difficult to effectively locate and fix errors in the program.
  3. Structured programming lacks information hiding and sometimes there is a clash of variables when different parts of the program overwrite the same variable.   

OOP on the other hand allows us to do the following; (Mathworks, 2010).

  1. Identify the components of a system or application. 
  2. Analyze and identify patterns to determine what components are reused or share certain features.
  3. Group components based on similarities and differences;

This systematic approach makes it easier and faster to developed programs. As to whether there are any new applications being developed using structured programming I am not aware. In my circles no one uses structured programming anymore. Most developers are turning to using OOP due its obvious advantages. The only application that may be left is in the maintenance of legacy applications that we cannot redo either due to cost or complexity.

Reference

Garza, G. (2010). Disadvantages of Structured Programming. [Online]. Available from:  http://www.brighthub.com/internet/web-development/articles/73920.aspx?p=1. (Accessed: 6 November 2010).

Mathworks. (2010). Why use Object Oriented Design. [Online] Available from:  http://www.mathworks.com/help/techdoc/matlab_oop/bri1rtu-1.html. (Accessed: 6 November 2010).

 

2 thoughts on “Disadvantages of Structured Programming

  1. I have been exploring for a bit for any high-quality articles or blog posts on this sort of space . Exploring in Yahoo I ultimately stumbled upon this site. Studying this information So i am glad to convey that I’ve an incredibly good uncanny feeling I came upon exactly what I needed. I so much without a doubt will make sure to don?t overlook this website and provides it a glance on a relentless basis.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>