Premium Essay

Code Reusability

In:

Submitted By b1maynard
Words 624
Pages 3
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 me". Instead of designing your functions first, then coming up with data structures to support them, you design the structure first and then come up with the operations needed to work with them. For example, consider a simple drawing program where you have a set of shapes (circles, rectangles, etc.) that share certain things in common (they all have a location, size, and color) but

Similar Documents

Free Essay

Reusability of Code

...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

Premium Essay

The Reusability of a Code

...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

Premium Essay

Reusability of Codes

...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

Premium Essay

Reusability of Code

...Reusability of Code To be able to compare and contrast procedural programming modules and object-oriented programming, or OOP for short, we need to understand the two different styles. Procedural programming was the most commonly used programming language early on with a top-down model. This programming module places its attention on procedures or actions, which take place within the program. A few examples of procedural programming are FORTRAN and BASIC. OOP although has become the preferred method of use. OOP focuses on objects, which are self-contained unit containing date and data operations. When it comes to the reusability of codes OOP makes this task much easier. As procedural programming is a line-by-line programming style as if to be writing out simple instructions. OOP however allows the programmer to utilize inheritance. Inheritance gives the programmer the ability to create new classes, known as subclasses, based on an existing class, known as the superclass. This ability enables the programmer to utilize the data and methods of the original class or superclass. This whole process is where the programmer is able to utilize code that already was written saving them time and eliminating the opportunity for programming errors. Another benefit to OOP over procedural programming is security and the ability to hide code. Within OOP, the programmer is able to label certain data fields as private. Once these data fields are labeled as private, their data and methods...

Words: 621 - Pages: 3

Premium Essay

Reusability of Code

...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

Free Essay

This Is Wonderful

...Consumer Information FCC Notice This equipment has been tested and found to comply with the limits for a Class B digital device, pursuant to Part 15 of the FCC Rules. These limits are designed to provide reasonable protection against harmful interference in a residential installation. This equipment generates, uses and can radiate radio frequency energy and, if not installed and used in accordance with the instructions, may cause harmful interference to radio communications. However, there is no guarantee that interference will not occur in a particular installation. If interference generated by this unit is suspected, call Brink’s Customer Care at 1-800-445-0872. If this equipment does cause harmful interference to radio or television reception, which can be determined by turning the equipment off and on, the user is encouraged to try to correct the interference by one or more of the following measures: ♦ Re-orient the radio/television antenna; ♦ Move the television or receiver away from the unit. ♦ Plug the unit and the TV/radio receiver into different outlets, i.e. not on the same circuit breaker. ♦ Contact Brinks Home Security or an experienced TV/Radio technician for additional suggestions. ♦ Review additional instructions on www.mybrinks.com. This equipment complies with FCC Rules, Part 68. On the outside of this equipment is a label that contains, among other information, the FCC Registration Number and Ringer Equivalence Number (REN) for this equipment. If requested...

Words: 10912 - Pages: 44

Free Essay

Content Analysis

...collected. * Many respondents presented more than one thought or feeling. In some cases they described a sentence to capture the imagery in the pictures. * In such cases all individual thoughts and feelings were captured for coding process * Coding Scheme: - The coding scheme that was obtained is as below (in alphabetical order). Please observe the ads you would find how the below codes were developed. SNo | Code | 1 | Adventure sports | 2 | Business | 3 | Celebrity testimonial | 4 | Dance | 5 | Do’s and Don’ts | 6 | Fashion | 7 | Food | 8 | Festivales | 9 | Food | 10 | Handicrafts | 11 | History | 12 | Hospitality | 13 | Nature | 14 | Natural Landscape | 15 | Monuments | 16 | Music | 17 | People | 18 | Public Awareness | 19 | Religion | 20 | Shopping | 21 | Spirituality | 22 | Sports | 23 | Wellness | 24 | Wildfire | * Theme generation: - Seven themes were identified based on the coding schemes. The list of themes are as below Sno | Code | Theme | No of Ads | 1 | Fashion | Culture(that broadly describes the codes presented in previous column. | 15 | 2 | Festivals | | | 3 | Dance | | | 4 | Food | | | 5 | Handicrafts | | | 6 | Hospitality | | | 7 | Music | | | 8 | People | | | 9 | Religion | | | | | Flora | 9 | 10 | Nature | | | 11 | Natural Landscape | | | 12 | Wildlife | | | | | | | 13...

Words: 294 - Pages: 2

Premium Essay

Case Study: How ICD-10 Impacts Healthcare

...The World Health Organization established the International Classification of Diseases (ICD) to standardize medical records. ICD-10 is an update that reflects changing needs in medicine. The code offers increased detail and flexibility. However, implementing the code presents medical establishments with several challenges. The biggest challenge is finding common ground between the two frameworks. How ICD-10 Impacts Healthcare A presentation published by the Centers for Medicare and Medicaid Services explains that the World Health Organization created ICD-9 in 1979 to reflect current medical advances and establish universal coding procedures. [1] The system outlines the diagnoses, procedures and terminology used by caregivers. Medical organizations...

Words: 937 - Pages: 4

Premium Essay

Hsc300 Unit 3 Assignment

...Shelly reviewed the updates made to the Carrier Form Codes. • The Carrier Services and Agent Reporting Agreement were updated effective June 15, 2015 to allow the settlement of carrier form codes. • Based on carrier request and ARC approval, ARC will update our form code table in alignment with the carrier’s form code range to prevent transaction errors and duplicate usage in IAR. • Testing may need to be performed. • Carriers should initiate their requests through ARC’s Carrier Help Desk or Shelly Younger. The preference would be to begin with Shelly Younger. • ORION is a multi-year project which will modernize the current settlement system. Work will occur in five phases. • Phase I – Foundation for Travel Agency, Carrier and Credit...

Words: 578 - Pages: 3

Premium Essay

Unit 9 Vs Icd-9

... ICD-9 has approximately 13,000 codes that are V.S. ICD-10 has about 68,000 codes and are 3 3 to 5 digits. to 7 digits long. ICD-9 first digit is either E or V or numeric ICD-10 first digit is alpha; 2nd and 3rd are numeric; 4th thru 7th are either ICD-9 lacks detail...

Words: 720 - Pages: 3

Free Essay

Environmental Scie

...“Environmental Sci-Math Camp” (February 16, 2013) Theme: “Utilizing our Scientific and Mathematical Competencies for an Environment-Friendly Community” Registration:……………………………………………………………………………… 6:00-7:00 Program:……………………………………………………………………………………. 7:00-8:00 * Prayer Lester Marcaida * National Anthem Remo De3lovino and Jeffrey Lonceras * Exercise (Bear Dance) SAST,YES-O, and Math Club * Yell Campers * Opening Remarks Mr. Casipit and Mrs. Rossel Garcia. Flag, Poster and Slogan Making:………………………………………………….. 8:00-9:00 * 1 participant/group Ice Breaker:………………………………………………………………………………… 9:00-9:30 * Rubber Band/Head Count Scrapped Art and Logo Making:…………………………………………………. 9:30-10:30 * 1 participant/group Word Puzzle, Rubik’s Cube, Sudoku:……………………………………….. 10:30-12:00 * 1 participant/group Tagis Talino:…………………………………………………………………………… 10:30-12:00 * 4 participant/group Lunch (Command Bracelet and Trivia):……………………………………….12:00-1:00 Ice Breaker:………………………………………………………………………………….1:00-1;30 * Ingatan si Mother Egg/Head Count Obstacle Race:………………………………………………………………………………1:30-2:30 Energizer:……………………………………………………………………………………...

Words: 850 - Pages: 4

Free Essay

Piramid of Giza

... Strayer University Code of conduct in a business is extremely important. It sets boundaries in a work environment that keeps ethical behavior regulated. The Cheesecake Factory is one organization that has a code of conduct in place that is detrimental to the success of its business. Some of those key aspects are Compliance with the law, Non-Solicitation and Non-Raid and Non-Disparage Issues. These codes that are put in place uphold ethical behavior and also protects the organization itself. Compliance with the law is extremely important. This code states: “We expect staff members to comply with all applicable federal, state and local laws,regulations, rules and regulatory orders at all times. Neither a supervisor nor any other staffmember has the authority to direct another staff member to break any law or to conducthim/herself in a manner that is counter to the Code of Ethics”. The Cheesecake factory put this code in effect to make sure that their employees hold up their duties as law abiding citizens. In this they also stated that they do not tolerate sexual harraasement or drugs, which is very important now a days with everything going on. This should and I’m sure it is a basic code of conduct whether it be a business or a school. When we are jobs giving service to the world we must keep in mind that our responsibilities to law and order do not change. The Non-Solicitation code of conduct ensures that customers have a comfortable no...

Words: 981 - Pages: 4

Premium Essay

?? Yu Su

...window.NREUM||(NREUM={});NREUM.info = {"beacon":"bam.nr-data.net","errorBeacon":"bam.nr-data.net","licenseKey":"5c680aaa66","applicationID":"3969032","transactionName":"YFVaZEpRXURTARYKXVkffF9MflZDcQ0MF0BYXFRVSh9gXkYHTTBbQ1V8VUxRWltB","queueTime":0,"applicationTime":22,"ttGuid":"929511F7D923232","agent":"js-agent.newrelic.com/nr-768.min.js"}window.NREUM||(NREUM={}),__nr_require=function(e,n,t){function r(t){if(!n[t]){var o=n[t]={exports:{}};e[t][0].call(o.exports,function(n){var o=e[t][1][n];return r(o||n)},o,o.exports)}return n[t].exports}if("function"==typeof __nr_require)return __nr_require;for(var o=0;op;p++)u[p].apply(s,t);return s}function a(e,n){f[e]=c(e).concat(n)}function c(e){return f[e]||[]}function u(){return t(n)}var f={};return{on:a,emit:n,create:u,listeners:c,_events:f}}function r(){return{}}var o="nr@context",i=e("gos");n.exports=t()},{gos:"7eSDFh"}],ee:[function(e,n){n.exports=e("QJf3ax")},{}],3:[function(e,n){function t(e){return function(){r(e,[(new Date).getTime()].concat(i(arguments)))}}var r=e("handle"),o=e(1),i=e(2);"undefined"==typeof window.newrelic&&(newrelic=window.NREUM);var a=["setPageViewName","addPageAction","setCustomAttribute","finished","addToTrace","inlineHit","noticeError"];o(a,function(e,n){window.NREUM[n]=t("api-"+n)}),n.exports=window.NREUM},{1:12,2:13,handle:"D5DuLP"}],gos:[function(e,n){n.exports=e("7eSDFh")},{}],"7eSDFh":[function(e,n){function t(e,n,t){if(r.call(e,n))return e[n];var o=t();if(Object.defineProperty&&Object.keys)try{return...

Words: 1521 - Pages: 7

Free Essay

Balaji Courier Express

...Balaji Courier Express (BCE) Round -1 • A training course structured around theory, group exercises and a simulation, where you will be running and operating a realistic business situation. • We will represent typical operational processes in a service business. • We will exaggerate the reality of operational business, helping you to identify common symptoms of inefficiency. • We will teach you a selection of the powerful tools that we use in Lean Six Sigma. • Do not adapt the process you have been instructed to perform. • Exercise is split in Round 1 and Round 2. • No procedural changes are allowed until Round 2, when you will be briefed on what you can do. • In Round 1, we will establish a baseline for process performance. • By all means ask questions for clarification, but you may not always get an answer. Sound familiar? • Spell out your assumptions. • Refer respective computers for related data. • You may find yourself confused and frustrated with the process. We hope you do! It will act as an incentive to change and improve the business! • [pic] [pic] [pic] [pic][pic] You are all employees of Balaji Courier Express. Established in year 2000, BCE has central Hub is at Aurangabad (Corporate Office) and three Regional offices are at Nagpur, Solapur, Mumbai. BCE’s spread is through 5 area offices namely Thane, Pune, Dhule, Beed and Kolhapur. Also, each taluka place has got a zonal office (400 outlets). ...

Words: 772 - Pages: 4

Free Essay

Summary

...Alphabetic index’s which provides an index’s of disease descriptions in alphabetical list of terms and their corresponding codes. The alphabetic index’s consists of parts which are: indexes of disease & injury, external causes of injury, table of drugs, table of neoplasms & chemicals. The tabular list is a structured list of codes divided into chapters based on conditions & body systems. Tabular list consists of categories, subcategories and codes and when many times a specified code is not available for a condition then it is put through tabular list for the code to be specified. Tabular list descriptions are listed in more than one manner as well as made up of 21 chapters of disease, description and their codes. The first part Alphabetic index’s use and purpose is to organize the list of indexes of disease descriptions in alphabetical list of terms and their corresponding codes plus helps the medical staff member better locate the description matching the code. However tabular list is a category of codes which allows the medical staff to better identify or locate the right code to fit the description or term of condition. First I would like to list all the financial loses Of ICD-10 which are accurate payment for new procedures, rejected claims & fraudulent claims. Cause of error, longer time to figure how to translate term to right code as also...

Words: 451 - Pages: 2