What are the disadvantages of procedural programming?
What are the disadvantages of procedural programming?
Disadvantages
- The program code is harder to write when Procedural Programming is employed.
- The Procedural code is often not reusable, which may pose the need to recreate the code if is needed to use in another application.
- Difficult to relate with real-world objects.
Why procedural programming is bad?
It is said in every OOP book (also in Lafore’s book) that procedural paradigm is prone to errors e.g. the global data as easily vulnerable by the functions. It is said that programmer can make honest errors in procedural languages e.g. by making a function that accidentally corrupts the data.
What are the limitations of procedure oriented programming?
Two limitations of procedure oriented programming approach are:
- No restriction on data values.
- No reusability concept hence time management, testing and length of the program increases.
Which is not advantage of procedural oriented language?
The code re-usability feature is not present in the procedure oriented programming. we have to write the same programming code to many times . We can not perform encapsulation ,inheritance etc in the procedure oriented programming.
What are the shortcomings of procedural programming how does object oriented programming overcome those shortcomings?
Procedural/structured programming lacks security which is the biggest demerit overcomed by OOP. The other advantage is that the use of classes and functions reduces the size of main function and thus the speed of execution enhances( the OS calls main which is the only function executed in the code).
What are the merits and demerits of procedure?
Version control is not supported by the stored procedure….Portability –
Advantages | Disadvantages |
---|---|
It is faster. | It is difficult to debug. |
It is pre-compiled. | Need expert developer, since difficult to write code. |
It reduces network traffic. | It is database dependent. |
It is reusable. | It is non-portable. |
What are the shortcomings of procedural programming how does object oriented programming overcomes those shortcomings?
What is the main drawback of structured programming?
Disadvantages of Structured Programming Approach: Since it is Machine-Independent, So it takes time to convert into machine code. The converted machine code is not the same as for assembly language. The program depends upon changeable factors like data-types. Therefore it needs to be updated with the need on the go.
What are the drawbacks of procedural languages justify the need of object oriented programming with a suitable program?
Procedural programming does not have any proper way for hiding data so it is less secure. Object oriented programming provides data hiding so it is more secure. In procedural programming, overloading is not possible. Overloading is possible in object oriented programming.
What are the shortcomings of procedural and modular programming approaches?
What are the shortcomings of procedural and modular programming approaches? Ans. Following are the various shortcomings of procedural and modular programming approaches: ✓ Procedural Programming is susceptible to design changes. ✓ Procedural Programming leads to increased time and cost overheads during design changes.
Are Stored Procedures bad?
Stored procedures promote bad development practices, in particular they require you to violate DRY (Don’t Repeat Yourself), since you have to type out the list of fields in your database table half a dozen times or more at least. This is a massive pain if you need to add a single column to your database table.
https://www.youtube.com/watch?v=eEBOvqMfPoI