PP,OOP AND EDP
PP,OOP AND EDP
Benefits of using OOP over PP
Object-orientedProgramming (OOP) denotes a programming language, which developsmodels by using abstraction (in the form of classes and objects)based on the real world environment. An object-oriented applicationuses an assortment of objects to pass, receive, and request massagesand process data into information (Sharma et al., 2012 Knuth, 2013).The main objective of object-oriented programming is to maximize notonly programs’ reusability but maintainability of programs as well.In this regards, it allows programmers to maintain programsconveniently due to enhanced flexibility. In addition, it utilizes asegmental language hence, easy to design and comprehend.
Onother hand, PP utilizes an encoding language where processes definemodules, and the process in this instance refers to an arrangement ofdefinite statements (Knuth, 2013). The programming paradigm of aProcedural Programming (PP) is usually based upon the notion of the‘procedure call, ‘which means that, it rotates around, therebyupholding code as concise as possible. In addition, Sharma et al.(2012) assert that it focuses on a given task in order to complete amission. Programmers have to adhere to given programming steps inorder to obtain the desired result. Now, the code can be said to havebeen written as per the procedural programming (Eliason, 2013). Assuch, the design representation applied in PP involves theidentification of a problem followed by a structured distribution ofthe problem into problems or secondary processes. In this regards, PPis time consuming as the maintenance process presents numerouschallenges.
Programmingbased on Object-oriented module has quite a number of advantages overother types of programming [ CITATION Ken13 l 1033 ].This programming language is easy to maintain as well as adapt thecurrent code as new objects are created receiving physiognomies fromexisting objects [ CITATION Ken13 l 1033 ].This reduces the time used for development in a considerable way andmakes adjustment of the program much easier. Oppositely, Sharma etal. (2012) emphasize that procedural programming takes onapplications by tackling problems from the top of the code to itsbottom (Top Down Design). This application has been at times referredto as inline programming. The one advantage of using object-OrientedProgramming is that it uses classes and objects whereas ProceduralProgramming takes a program in form of a problem to break it up intosub-procedures. These sub-procedures are continually broken downthrough functional decomposition. The application does so until theproblem is simple enough to be solved. This takes too much time andadjustment of programs is not easy [ CITATION Ken13 l 1033 ].Thesecond advantage of using OOP as compared to using only PP is thatObject-Oriented Programming (OOP) offers a clear structure forsoftware components which makes it good for central abstract datatypes where application details are concealed, and the unit has aclearly defined interface that can be used for developing GUI(Graphical User Interfaces) [ CITATION Jem00 l 1033 ].Inobject-oriented programming, the core components in a program areclasses, and not procedures. The object-oriented method permits onedevelops classes and substances similar to actual world substances.
Example of a class with an attribute and a method
i = color, height, mass, gender
k = behaviors (i.e. squatting, walking, eating
return `Animal world`
Aclass can be defined as an assortment of objects that have mutual orcommon procedures, properties as well as activities or behaviors. Itis made up of data and methods. Objects are formed or created fromclasses’ models (Eliason, 2013). For instance, I may design a classwild animal, which is a collection of all wild animals in the world.Animals have state, such as color, height as well as weight. They aswell have behavior, such as squatting, crawling, walking, flying andeating. All of the state and behavior of a wild animal isencapsulated within the class wild animals. This class wild animalhas a string behavior to represent the wild animal’s mode ofmovement. The procedures related with a class and the elements of aclass are condensed inside the class. These processes denote themethods of a class. In the actual world, all attributes have twoshared characteristics i.e. state and behavior. In computer encoding,software elements denote abstracts similar to actual life attributessuch as behaviors and state.
Feature of object-oriented programming that Visual Logic lacks.
Traditionallanguages align to texts hence, they incline to provide anon-spontaneous system towards comprehending OOP. In this regards, aneed to offer a visual encoding model suffices. Object-orientedprogramming (OOP) has quite a number of features that otherapplications lack. The most important feature of Object-orientedprogramming (OOP) is that it is procedural as well as objectsoriented nature [ CITATION Ken13 l 1033 ].Visual logic does not have this feature thus making Object-orientedprogramming (OOP) different from VisualLogic. Knuth (2013) asserts that OOP utilizes encapsulation, whichallows the storage of state and behaviors related to a specificclass. The replication of this feature in a visual logic means theutilization of complex codes thus, a complicated learning.
Benefit of using event-driven programming over purely procedural programming.
EDPor Event Driven Programming denotes an encoding paradigm or modelthat functions due to peripheral inputs. For example, when a personis using a PC, she or he is unceasingly raising events or actions,which precipitate the PC to complete purposes, as commanded. In thisregards, an event driven encoding is essential to the development ofcomputer OS, for example, in clicking an icon on a screen, an eventis initiated. As such, one of the primary advantages of event-drivenprogramming compared to using purely procedural programming isflexibility. Since the flow of the application is observed byoccurrences rather than procedural program, it is not a must for userto be conventional to the programmer’s understanding of the waytasks ought to be undertaken (Knuth, 2013).In addition, an event driven encoding offers users a friendlyexperience. Over the execution of event driven encoding, everyone canrun a PC’s OS without gaining expert awareness of using a PC.However, PP requires a person to gain expert knowledge.
Eliason, K. (2013, August 1). Difference between OOP and Procedural Programming Language (a review). Retrieved March 15, 2015, from https://neonbrand.com/website-design/procedural-programming-vs-object-oriented-programming-a-review/
Jemmy, W. E. (2000, May 5). Bilkent Education. Retrieved March 15, 2015, from http://www.ctp.bilkent.edu.tr/~russell/java/LectureNotes/1_OOConcepts.htm
Knuth, D. E. (2013). Art of Computer Programming, Volume 4, Fascicle 4, The: Generating All Trees–History of Combinatorial Generation. Addison-Wesley Professional.
Sharma, M., Sharma, C., Bhardwaj, A., Singh, N., & Singh, L. (2012). Comparative Study of Static Metrics of Procedural and Object Oriented Programming Languages. IJOCT, February.