Disadvantage of Conventional ProgrammingTraditional programming languages such as COBOL, FORTRAN, C etc. are commonly known as procedure oriented languages. The program written in these languages consists of a sequence of instructions that tells the compiler or interpreter to perform a given task. Numerous functions are initiated by the user to perform a task. When a program code is large, it becomes inconvenient to manage it. To overcome this problem, procedures or subroutines were adopted to make a program more understandable to the programmers. A program is divided into many functions.
Flow of functions in non-OOP languages
Each function can call another function, as shown in Figure. Each function has its own task. If the program is too large the function also creates problems. In many programs, important data variables are declared as global. In case of programs containing several functions, every function can access the global data as per the simulation in Figure. In huge programs it is difficult to know what data is used by which function. Due to this the program may contain several logical errors.
Sharing of data by functions in non-OOP languages
The following are the drawbacks observed in monolithic, procedure, and structured programming languages:
- Huge programs are divided into smaller programs known as functions. These functions can call one another. Hence security is not provided.
- No importance is given to security of data and importance is laid on doing things.
- Data passes globally from function to function.
- Most function accesses global data.