...Assignment week 1 Course: PRG/211 - ALGORITHMS AND LOGIC FOR COMPUTER PROGRAMMING Submitted by: Gbigbi Jonathan Richards Subject: Reusability of codes Date: June 3, 2013 Reusability of codes Reusability In other words, we should be able to use instances of the same component in different systems. This isn't always possible. Sometimes a component needs to provide additional services or the implementation of a provided service needs to be altered slightly. A well designed component should anticipate these modifications by providing hooks that allow users to extend or alter functionality without modifying the internal structure of the component. There are several principles that help us create reusable components. Components should be general, abstract, and not too smart. Procedural programming modules and objects are similar in that they use most of the same commands to execute their functions and store their data but also are very different. Procedural modules are easier to use for small specific programs that perform specialized functions. Objects are better used for more general operations that show a need for more complex and reusable functions that may require security and hidden code to avoid any corruption or mistakes. Both options permit private and local variables to be declared but modules can use data separate from the module where an object has its within itself and can be accessed only through its own methods when it is called...
Words: 428 - Pages: 2
...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 required. The reusability of a code, many programmers know that is not easy designing and coding a module or object. When implementing a code, it can be complex and can take a long time to be done or accomplish. When it comes down to it, it makes a lot of sense to use the code as often as you can. Code reusability has actually become a very valuable part of adding efficiency and actually made it easier for programmers and computer programming itself. When making a program either you can start from scratch every time or you can use the code previously made and just add on to it. In programming information, hiding is the principal of separating the designs and or making certain decisions in a computer program can actually change. Information hiding protects other parts of the program from actually changing a lot. If the design is changed in any way then the Information hiding actually provides a stable code, which can protect the remainder of the program from the implementation. The details are most likely to change...
Words: 579 - Pages: 3
...Reusability of Code One of the key factors for large software development projects is the ability to reuse code amongst team members. This allows for efficiency and reduces the time to get a software product delivered to a customer (or brought to market). This paper is intended to focus on the different areas that would benefit a software development team (or company) by having a structured and reusable code library in place. I have experience in supporting large ECM (Electronic Content Management) systems and I will refer to these re-world scenarios throughout this document. Reusability refers to the ability for a single developer that specializes in one area (or is assigned the task of developing) to develop a class or specific code that can then be used by other developers. As an example, a senior developer defines a class that serves as a blueprint for developing various objects that would input data into a Filenet ECM system. Once this class has been defined and created, other developers can reuse this class to develop objects that allow for public input and that will eventually store data in the ECM database. This stored data that is specifically formatted to be read by the Filenet application, allows end users to run reports that have a specific output that the want to view. In essence, the reusability of code is akin to manufacturing one part of a car that can then be used for many cars (such as a single frame that can hold various models of cars). The developer...
Words: 317 - Pages: 2
...Reusability of Code PRG/211 Reusability of Code When a developer is deciding to write code or a full out program, he/she must take into account the method of the code. There are many types of programming languages, but there are essentially two types of programming: procedural and object oriented (OPP). Both have their place in programming but you can also find procedural in OOP as well. But first we need to see what are the differences and similarities between the two. Structured programming consists of a level of such straightforwardness is reached that the execution is obvious to the programmer. Object-oriented programming consists of assemblage code with the data on which it operates so that this "object" can function separately of the rest of the software system. Structured programming and object-oriented programming are not exclusive from each other. You can structure the code in an object, and you can use objects to implement the modules of code in a structured program. Task vs. Data Structured programming is based around data structures and subroutines. The subroutines are where stuff actually "happens", and the data structures are simply containers for the information needed by those subroutines. Object oriented programming, on the other hand, shifts your primary focus to the data itself. Instead of asking "what do I want to do and what will I need to know to do it", you ask "what kind of things do I want to have and what can those things do...
Words: 624 - Pages: 3
...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 object –oriented programing both ways allow a programmer to save valuable time when developing software. Procedural programming focuses on creating procedures these procedures or modules are used and focused on one at a time to complete the tasks. These procedures pass data from one to another in that step by step fashion aforementioned. This method can cause serious problem if a change to the program is required, because these procedures may contain sub-procedures and sub sub-procedures. 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...
Words: 515 - Pages: 3
...have created programming languages that the computers use to complete tasks and achieve many goals. There are thousands of programming languages that are in use today but the most popular are C#, C++, Java, Visual Basic, Pascal, and COBOL. (Venit, 2011) There are two types of methods that programmers use to create these programs, procedural and object-oriented programming. Procedural programming is the older of the two methods and object-oriented is the newer and most commonly used method today. Both of these methods use programming code, data and procedures to communicate with the computer. The difference between the two is that the interaction of data, procedures and functions. Programming is a very time consuming process and takes a lot of trial and error to create a good product. Programmers have found a way to shorten some of that time by using code reusability. Programmers are now fonder of object-oriented programming because of code reusability. In procedural programming, it is a step by step process that is very detailed and intricate which keeps data and the procedures separate with data passed from one procedure to another. (Gaddis, 2010) When a program is larger and more complex, this separation of data and procedures makes it more difficult for a programmer and could require many modifications to...
Words: 637 - Pages: 3
...algorithmic programming is based upon concept of procedure call. Here procedures or subroutines are series of computational steps. It enables the programmers to specify simple interface, very suitable for reusability, and procedures are self-contained. Because of reusability, different people can use the code written by someone. This also paves way to creation of programming libraries. Procedural programming offers the following advantages: 1. Ease of implementation 2. Easier to keep track of program flow. 3. Modularized 4. Need less memory Disadvantage of procedural programming can be summed up as: 1. Data is exposed to whole system. 2. Real world object mapping is difficult. 3. New user data type creation is very difficult. Reusability Procedural programming does achieve reusability of code within the same program as well as other programs. This is achieved by creating reusable chunk of code called procedures. Procedures can be declared and defined locally or globally inside a program. It enables the programmer to call the specific procedure at any point of the program. But here is a point to notice that local declaration permits reuse only within the local scope while a global declaration facilitates reuse of the code in any part of the program. If the procedures are placed inside a global library, they can be accessed from other programs as well. But unlike object oriented programming approach, inheritance cannot be...
Words: 870 - Pages: 4
...SUPPORT@ACTIVITYMODE.COM PRG 211 ENTIRE CLASS COMPUTER PROGRAMMING PRG 211 Complete Class Algorithms and Logic for Computer Programming WEEK 1 PRG 211 Week 1 Programming Fundamentals -Reusability of Code Discussion Question 1 Discussion Question 2 WEEK 2 PRG 211 Week 2 Program Solution Proposal Discussion Question 1 Discussion Question 2 PRG 211 ENTIRE CLASS COMPUTER PROGRAMMING To purchase this visit following link: http://www.activitymode.com/product/prg-211-entire-class-computer-programming/ Contact us at: SUPPORT@ACTIVITYMODE.COM PRG 211 ENTIRE CLASS COMPUTER PROGRAMMING PRG 211 Complete Class Algorithms and Logic for Computer Programming WEEK 1 PRG 211 Week 1 Programming Fundamentals -Reusability of Code Discussion Question 1 Discussion Question 2 WEEK 2 PRG 211 Week 2 Program Solution Proposal Discussion Question 1 Discussion Question 2 PRG 211 ENTIRE CLASS COMPUTER PROGRAMMING To purchase this visit following link: http://www.activitymode.com/product/prg-211-entire-class-computer-programming/ Contact us at: SUPPORT@ACTIVITYMODE.COM PRG 211 ENTIRE CLASS COMPUTER PROGRAMMING PRG 211 Complete Class Algorithms and Logic for Computer Programming WEEK 1 PRG 211 Week 1 Programming Fundamentals -Reusability of Code Discussion Question 1 Discussion Question 2 WEEK 2 PRG 211 Week 2 Program Solution Proposal Discussion Question 1 Discussion Question 2 PRG 211 ENTIRE CLASS COMPUTER PROGRAMMING To...
Words: 462 - Pages: 2
...Programming Fundamentals Paper Writing code using procedural programming and object oriented programming can be time consuming and complex but they do have their advantages also depending on what you are trying to accomplish once the code is compiled and running bug free with no errors. To compare and contrast both we can start with reusability of code. In order to reuse any code it has to be working and effective first off. Being able to reuse code gives the programmer the ability to save time by not doing repetitive work. The code also has to be able to work somewhat universally with different applications in order to be considered reusable. Reusability of code has become more practical and common in the process of programming. Hiding code is a form of security for programmers, for one it doesn’t allow hackers to gain access to the program code and potentially harm or crash the application is code is running. Hiding code can also be harmful if not done correctly. For example in object oriented programming, if an object that has a data field cannot see a hidden portion of the code it needs to access then an error code will show and possibly crash the program. In procedural programming, the passing of data is very common which in other words can represent a big security loop hole since code can be easily accessed. Code that can be easily accessed we know can cause big problems for an application. In object oriented programming, data encapsulation gives the programmer the...
Words: 437 - Pages: 2
...INTERNATIONAL JOURNAL OF SCIENTIFIC & TECHNOLOGY RESEARCH VOLUME 4, ISSUE 02, FEBRUARY 2015 ISSN 2277-8616 44 IJSTR©2015 www.ijstr.org A Framework For Software Quality Assurance Using Agile Methodology Maria Sagheer, Tehreem Zafar, Mehreen Sirshar Abstract: Agile methodology that uses iterative and incremental approach is widely used in the industry projects as they can satisfy to the change of requirements. Efficient product delivery is achieved by using short iterations. But assuring the quality in any system is essential and imperative part which is very difficult task, which raises a question that: Is quality is assured in the software which is developed using agile methodology? The research paper proposed a solution and summarizes that how the quality is achieved or assure in agile software development using different factors. The major focus of this research paper is to analyse the quality parameter which assure quality in the agile methodology. The research paper includes the brief overview of the parameters which assure quality in agile. ———————————————————— I. INTRODUCTION. For the successful software engineering, the delivery of high quality software is needed. Mainly the customer satisfaction level is considered as the quality attribute which defines high quality of any system. Traditionally waterfall approach is used for the software development in which system is developed by freezing the requirements. To achieve high quality Agile methods rather...
Words: 5336 - Pages: 22
...Reusability of Code PRG/211 Reusability of Code When a developer is deciding to write code or a full out program, he/she must take into account the method of the code. There are many types of programming languages, but there are essentially two types of programming: procedural and object oriented (OPP). Both have their place in programming but you can also find procedural in OOP as well. But first we need to see what are the differences and similarities between the two. Structured programming consists of a level of such straightforwardness is reached that the execution is obvious to the programmer. Object-oriented programming consists of assemblage code with the data on which it operates so that this "object" can function separately of the rest of the software system. Structured programming and object-oriented programming are not exclusive from each other. You can structure the code in an object, and you can use objects to implement the modules of code in a structured program. Task vs. Data Structured programming is based around data structures and subroutines. The subroutines are where stuff actually "happens", and the data structures are simply containers for the information needed by those subroutines. Object oriented programming, on the other hand, shifts your primary focus to the data itself. Instead of asking "what do I want to do and what will I need to know to do it", you ask "what kind of things do I want to have and what can those things do for...
Words: 335 - Pages: 2
...January 25, 2014 Reusability Recyclable codes are used to diminish the amount of time taken to create new coding projects. This also in many cases can decrease the amount of funding used by a corporation to create its products. Reusing codes in a sense is the taking of code from one product and trying to use it in another. The hope is that the person or persons creating the code will not have to heavily modify the code so as to save time and to keep the process simple. In this research paper we will discuss security within the realm of hiding code and how object-oriented programming and procedural programming methods are similar. We will also discuss code reusability and encapsulation. Object-Oriented Programming Object-Oriented programming is program writing that is designed around objects instead of actions and logic. These objects can be encoded and tried independently and then later amassed and composed to create a full program. Also incorporated in object-oriented programming is a technique termed data hiding. Programmers use data hiding to hide data inside the program. This makes it harder for hackers and other unwanted entities to gain entry to the information. This type of security comes at a cost. Programmers need be able to use additional code to hide the data. In object-oriented programming the code is made up of objects. These objects are then encoded into capsules. This gives each object its own type of code. If the data in the object is not hidden...
Words: 621 - Pages: 3
...Java Script: What is a Function? Abstract Java script functions are pieces of codes used to execute commands in a program whenever they are called to do so. Java script functions enable the reusability of commands, passing argument and value return in the program. This paper discusses functions as used in Java script as a programming language. Key words: Java script, functions, Python, built-in function, programmer function Java Script: What is a Function? Introduction In Java script, functions are defined as pieces of codes with specific duties that must be called up or referenced before they perform this function. Prior to their referencing, the codes sit in a dormant mode without any function. Functions can also be defined as collection of names or value pairs with hidden links to prototype object. One major use of functions in Java script is in repetitive tasks such as calculations, thus, they highly exhibit an element of reusability. Some programmers sometime call functions as constructors or arrays. Functions are used in defining arguments passed down to them by the programmer when the function is called (Resig, 2006). The result of the argument from the function depends on the kind of arguments that are given to the function. Functions can take more than one argument. Additionally, functions allow for augmenting object prototype to be available to other functions. Augmenting a function prototype makes this method to be available to...
Words: 470 - Pages: 2
...programmers to design and code a procedures, object, or module program can be very time consuming and complex for the programmer. It makes a lot of sense to use codes that you know work correctly as often as is practical to save time. Being an efficient programmer you need to be able to reuse codes, called the reusability of codes. Programs are a sequence of codes that are made of modules, which performs data using the hardware. The two types of programming languages that will compares in this paper are Procedural and Object-Oriented programming. Programmers can use flowcharts diagram that can represents, and visual the program processes. Key difference between Object-oriented and Procedural programming for the object-oriented program break down programming task into objects, which encapsulate methods and data; and for the procedural programming, which break task in to subroutines and variables of collections. The object-oriented program designing technique that used the top-down aspects to abstract data types with the combined modules and structure design. Object-oriented program design composes of system based on concept of an object. Object-oriented programming supports several characteristics directly. Message, method, object, and class are the attributes or entities in the object-oriented programming. Some benefits are include in the object-oriented programming like reusability of code, which helps programmers reaching their goals faster by not writing codes over. Developing a...
Words: 508 - Pages: 3
...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. The program was broken down into a few steps that included determining the programs to use, deciding what was best from those two programs, combining them, and then modifying the code to make the program run successfully. First was to decide what two programs to examine. This was determined by selecting two programs that had a similar flow to the programs. Two programs had a similar theme of the main method to call for the inputs and arrays while the second class had the methods to determine the compensation due. Due to similar logic, it made sense to combine these two programs. The next step was determining what was best from each program to decide what could be replaced. The code that was chosen to be what we designed was the program that completed the goals most effectively. The program properly used the arrays to hold several salespeople and compare their compensation. The program was capable of doing this for two salespeople. At this point, it needed to be determined what elements from the second code would be used and inserted...
Words: 749 - Pages: 3