Monday, January 4, 2010

Drawbacks of Procedural Programming:

Drawbacks of Procedural Programming:
• It is often the case that methods have dependencies between each other therefore when updating a function it might be required to update other dependencies as well. However if the dependencies are distributed in various modules then it will be a lengthy task to track and update the dependents accordingly. In order to avoid such situations the phenomenon of cohesion was adapted which suggested the grouping of only related functions into a module.
• Another problem in the procedural paradigm was that emphasis was only laid on the actions or functions, however the actual purpose for which computer programs are made is the storage and management of data, which was given 2nd class status in procedural programming.
• In addition to this there was another problem related to data that was irritating the developer community. Actually in functional programming every function had complete access to data; this resulted in chances that a function having poor logic will modify the important data in an unexpected way thus negatively affecting other functions as well.
• Another problem related to data was that if all functions had access to data and the storage pattern of data was changed then all the functions should be modified accordingly.

No comments:

Post a Comment