Hello guys!
In the last blog we saw the basics of programming and we even discussed about the
approaches of programming. These types are known as paradigm. Let us see the
advantages and disadvantages of different paradigm of programming.
Every paradigm
has its own advantages and disadvantages.
The first paradigm of programming is
‘Procedure Oriented Programming”. It was in use since the early age of
programming. It focuses on procedure of the programming and in which order the
instructions should be carried out.
- Advantages:
1. It is relatively simple, and easy for
implementation of compilers and interpreters.
2. We can re-use pieces of code in a
program without writing them again, by the virtue of method calling.
3. In Procedure Oriented Programming it
is easier to keep track of program flow.
4. Needs less memory.
- Disadvantages:
1. Data is exposed to whole program at
once, so there is no security of the available data.
2. Since the focus is on the
instructions, it is rather difficult to relate to real world objects and in
transition some real world problems.
3. Difficult to create new data types
as it reduces extensibility.
The second paradigm
is Object Oriented Programming. It overcomes many of the disadvantages of Procedure
Oriented Programming. It focuses on data rather than the procedure.
- Advantages:
1. It models real world well.
2. Data is more secure because of
encapsulation and data hiding techniques.
3. It offers the re-usability of
classes. That is already created without writing them again and again.
4. The programs are written in the Object
oriented form. So easier to test, manage as well as to maintain.
- Disadvantages:
1. It requires more memory, so the size
of applications developed with OOPs is larger than the procedural way.
2. The OOP programs design is sometimes
tricky.
3. The programmer should have proper
planning before creating a program using the OOPs concept.
As stated
above, every paradigm has advantages as well as disadvantages. None of the paradigm
is perfect in its own, but they do solve some problems better than other
paradigm. In this case, The concept of OOP related features brings the
idea of reusability, dynamic nature, inter communication within the blocks, multithreading,
etc. which are missing in procedural languages. Thus, Object Oriented
Programming is more useful for gaming applications than Procedure Oriented
Programming. Let us discuss about the properties of OOPs and its use in gaming
applications in the next blog. Until then, HAPPY CODING!
Nicely explained.
ReplyDeleteThank you so much
DeleteHelpful article!
ReplyDeleteThank you for the feedback
DeleteGood work!
ReplyDeleteThis comment has been removed by the author.
DeleteThank you so much
DeleteWell written π
ReplyDeleteThank you so much
DeleteInformative
ReplyDeleteHelpful!
ReplyDeleteThank you so much
DeleteThis post made me to understand the above difference clearly ...thank you!!
ReplyDeleteThank you so much for the feedback
DeleteNice blogs!
ReplyDeleteUseful post
ReplyDeleteGreat share!!
Nice!!
ReplyDeleteThank you so much
DeleteNice
ReplyDeleteThank you
DeleteGreat content
ReplyDeleteKeep posting
Thank you for the feedback
DeleteNiceπππMuch informative ππππ
ReplyDeletehelpful info!
ReplyDeleteIt is really good πππ
ReplyDeleteVery nicely designed.. excellent job..keep it up π
ReplyDelete