PRG/211 – Algorithms and Logic for Computer Programming
Submitted to: Professor Christopher Scott
Object-oriented programming (OOP) and procedural programming are two of the programs used for writing software and moving objects. Procedural programming is a method of writing software. It is a programming practice centered on the procedures or actions that take place in a program. Object-oriented programming centers on the object. Object-oriented programming creates objects from abstract data types that encapsulate data and functions together (Gaddis 2010). There are many similarities and differences in terms of procedural programming modules and objects in relation to; reusability, hiding code, and the passing of data within the program itself. Code Reusability
Code reusability starts from the design phase where the code will be designed to inherently reusable. However, to achieve such goal, the proper framework should be in place for effective reuse where components are properly standardized, available for release and documented for reuse. If the intention is to build a framework or utility that is designed for reuse it is important to create good releases, versioning and documentations process to increase the chance of having this components to be reusable in the future. It’s also important to define the components within the application that can be reusable for other applications and also available for integration with other systems, Procedural Programming
Procedural programming was the first of the two and contains within the program one or multiple procedures. These procedures perform their own specific tasks to supplement the program and are centered through models and functions. The procedures use the data items that are not part of the procedure, however; in a procedural program the data items are transmitted to each procedure. As the program becomes larger and more complicated problems...