Problems in Procedure Oriented Programming
Published by: Anil K. Panta
Procedure Oriented Programming focuses on procedures or functions and the order of steps to execute. It is widely used in languages like C, but has limitations in large, complex systems.
Common Problems in POP:
Global Data
Global variables can be accessed anywhere.
Leads to side effects and makes debugging harder.
Limited Code Reusability
Functions are tightly bound to specific tasks.
Hard to reuse code blocks without duplication.
Poor Real-World Modeling
Functions do not map naturally to real-world entities.
Hard to design systems with interacting components.
Maintenance and Scalability Issues
Changes in one part can break other parts.
Difficult to update or scale up the program.
No Inheritance & Polymorphism
Lacks built-in support for powerful OOP features like inheritance and polymorphism.
Lack of Abstraction
Difficult to hide complex details.
Code becomes tightly coupled to specific implementations.
Managing State is Difficult
Data and functions are separate.
Hard to track program state consistently.