Reuse Ability of Code

Submitted by: Submitted by

Views: 204

Words: 481

Pages: 2

Category: Other Topics

Date Submitted: 08/26/2013 02:41 PM

Report This Essay

Reusability of Code

5/20/2013

PRG211

Reusability of Code

In programming a lot of times we as programmers will need to create a project that is similar to a project we recently completed but will have a significant difference to another area of the project. In order to do that we would need to reuse the code of that project and add it to this new project, hence allowing us to finish and test the program. This is a great use of reusability of code. We will be able to compare and contrast the computer programming modules and objects. This will aid us in explaining the reusability of code in programming terms.

There are many ways reusing code is helpful to us as programmers through our daily work in each and every program we work on. One great reason is the ability to quickly and efficiently reuse code for one program to the next. This allows us the ability to be flexible with programs we are working with and especially when it comes to a team of programmers working on several modules of the program needing to reuse coding to call another module in the program. A negative to that would be that being able to reuse code also may allow for mistakes when it comes to the final product due to the original code’s variables not matching up to the new program’s coding causing additional bugs in the syntax. This would cause additional setbacks that the programming team already did not anticipate even if the code was not originally written by the programmer.

The same can be said about procedural programming models and objects. In object-oriented programming many of the methods are the same as procedural programming but in object-oriented programming each object is capable of sending and receiving messages and processing data. The similarities arise in the functions themselves as they both allow the programmer to write a series of tasks in the programming language, both use algorithms to process data, similar access methods to the data and both have controllers to...