This website uses cookies to ensure you have the best experience. Learn more

Reusability Of Code Essay

529 words - 3 pages

PRG/211
Reusability of Code
Writing software can be a very time consuming task depending on many things including the complexity of the program. When writing a program there are two main methods a programmer can take advantage of Procedural and Object-oriented programing. Procedural programming uses a step by step method of procedures to produce the desired result, whereas object-oriented programming or OOP is broken down into encapsulated objects that can be used independently to perform the task with its own method.
One very common technique among developers is the reusing of code, because this technique reduces the amount of unnecessary coding which saves the developer a tremendous amount of time, whether it is the reusing of procedures or the reusing of software components in ...view middle of the document...

If a major change to the main procedure is require this change could cascade to the sub-procedures resulting in a serious problem for the programmer. Object-oriented programming focuses on creating object and within these objects are data and the procedures which operate the data. The data is then encapsulated into the object eliminating the problem with the code that a programmer would run into while procedural programming.
Although procedural programming and object-oriented programming differ in so many ways they also share some similarities. One of the similarities that the both share is the use of algorithms to process data. Without the algorithms both procedural programming and object-oriented programming would be stuck with loads of data and nothing to do with it. Also, both type of programming take advantage of procedures to help navigate data to the right path. Both type of programming also allow the aforementioned reuse of code that save the programmer loads of time. One of the more obvious commonalities that both procedural programming and object-oriented programming share is they are both trying to perform a task they are designed to take data and perform a logical computation to produce the desired result.
As you can see, both procedural programming and object-oriented programming are different in many ways procedural programming relies on creating procedures and sub-procedures that pass data along step by step to perform a task. While object-oriented programming creates object that have procedures and data built in to perform a task, however they also share a number of similarities which can make the decision of what type of programming to use just a little more difficult. Personally I like the Object-oriented method of programming it seems to be more flexible and easier, but the style in which a program is developed in up to the programmer.

Other Papers Like Reusability of Code

Unit 1 Research 1 Essay

828 words - 4 pages be implemented in a page of code. Prolog – A general purpose logic programming language designed by Alain Colmerauer and published in 1972. SQL – A special purpose programming language designed for managing data held in a relational database management system. It was designed by Donald D. Chamberlin and Raymond F. Boyce in 1974. One of the first and most widely used commercial languages for Edgar F. Codd’s relational model. 1980’s C

Java Programming Essay

1150 words - 5 pages container. ► takes iterators as its first two arguments. ► takes container elements as its first two arguments. Q9. Compiler performs ________ type checking to diagnose type errors, ► Static ► Dynamic ► Bound ► Unbound Q10. Which of the following is/are advantage[s] of generic programming? ► Reusability ► Writability ► Maintainability ► All of given Q11. Vectors contain

Specification, Implementation, and Deployment of C

3790 words - 16 pages Parameter OutParameter analytical model generalize originate from reusability * the concept of interface to and OO approaches. A express extrafunctional reusability approach in CBSE manifests on different levels. First, a component Figure 1. UML metamodel for properties of a component. Interfaces. An interface can be composed at runtime without any need for semantic specification of of a component can be compilation. Second, a component detaches its

Function Point Analysis

3989 words - 16 pages application size, such as lines of code (LOC), are that: 1. It is based on business requirements and is meaningful to business users. 2. It can be used early in the lifecycle and for estimating throughout the lifecycle. 3. It is independent of tools, methods and technologies e.g. it has been proven for OO, Client/Server, Internet, UML, DSDM and other technologies. 4. It is mechanistic and repeatable, giving relatively accurate, consistent, results

Information Security

3941 words - 16 pages department has a unique code. Server rooms are only accessed by authorized Canon IT technicians. Each workstation is only accessed by a designated employee. Workstations must be locked when it is not in use. Disaster Plan Fire Fire prevention Canon compiles all applicable laws, regulations, codes and good practices to minimize the threat of fire to employees, visitors, and property. This fire prevention plan includes following procedures to

Implementing Wireless Network

5379 words - 22 pages PipelineTM.The Transceiver PipelineTMis fully customizable and designed to efficiently calculate: Transmission and propagation delays Link closure Directional antenna gain Path loss Background noise and interference Modulation effects Bit error rates and error correction Source code is provided, ailowing you to customize modeling of environmental effects including fading, multipath, terrain, foliage, and weather. Figure 2.3: Understand the

Construction

5283 words - 22 pages using a timber formwork. Painted timber formwork not only adds color and a finished look, but oil or epoxy treatments can double the number of times the formwork may be reused. The disadvantage for timber formwork: 1. Constructing timber formwork is a labour intensive work; it is uneconomical in large scale projects. 2. Mechanization usually cannot be employed. 3. The reusability of timber formwork is low, only two to five times. 4

Principles Of Information Security

3291 words - 14 pages if subsequent rights restrictions require it. Preface xxv PowerPoint slides Glossary and more! CourseMate Printed Access Code (ISBN 1-1111-3824-9) Instant Access Code (ISBN 1-1111-3825-7) Instructor Resources Instructor Resources CD A variety of teaching tools have been prepared to support this textbook and to enhance the classroom learning experience: Electronic Instructor’s Manual—The Instructor’s Manual includes suggestions and

Principles of Information Security

3241 words - 13 pages suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. Preface xxv PowerPoint slides Glossary and more! CourseMate Printed Access Code (ISBN 1-1111-3824-9) Instant Access Code (ISBN 1-1111-3825-7) Instructor Resources Instructor Resources CD A variety of teaching tools have been

Computer System Security

3291 words - 14 pages if subsequent rights restrictions require it. Preface xxv PowerPoint slides Glossary and more! CourseMate Printed Access Code (ISBN 1-1111-3824-9) Instant Access Code (ISBN 1-1111-3825-7) Instructor Resources Instructor Resources CD A variety of teaching tools have been prepared to support this textbook and to enhance the classroom learning experience: Electronic Instructor’s Manual—The Instructor’s Manual includes suggestions and

Freedom And Responsibility

2141 words - 9 pages Built within the Constitution of the United States are specifically defined freedoms that are guaranteed to all citizens. Conversely, with every constitutional freedom there comes a corresponding responsibility. On September 25, 1789, the state legislature’s twelve proposed amendments were transmitted by congress, the first two dealing with congressional representation and congressional pay. The following numbers three through twelve were

Related Essays

The Reusability Of A Code Essay

593 words - 3 pages The Reusability of a Code Randy Lane March 27, 2012 The Reusability of a Code In computer science and software engineering reusability is a segment or part of a code that can be used again to add new functions with a little change or hardly any modification. Reusing if codes can reduce not only time, but also can increase that prior testing stage and use of it can reduce bugs and some code modifications when a change in code is

Programming Fundamentals Paper

994 words - 4 pages -oriented programming allows for inheritance, which makes changes faster and easier as only the parent class needs to be updated and all the child classes will automatically be updated as a cascade affect. One major difference between procedural programming and object-oriented programming is the reusability of code. In procedural programming, the functions or methods are independent of each other. A module can't be used for two different functions

Lta Wk5 Prg420 Essay

749 words - 3 pages LTA Code Reusability Gregory Z. Peck, Paul Newman Charles Barkley, Mark Whalberg, Christopher L Columbus, Jeffery Domer, Joshua Tree PRG 420 August 12, 2014 Gary Newman LTA Code Reusability When working on a program it is unusual that a single person will complete the program. Usually a team is responsible for working on it. Normally there is coordination prior to coding to ensure all the objects, methods, and classes will work together

C++ Programming Essay

1220 words - 5 pages class. The idea of inheritance implements the is a relationship. For example, mammal IS-A animal, dog IS-A mammal hence dog IS-A animal as well and so on. Templates Templates in C++ programming allows function or class to work on more than one data type at once without writing different codes for different data types. Templates are often used in larger programs for the purpose of code reusability and flexibility of program. The concept of