Preview

Code Reusability Essay Example

Good Essays
Open Document
Open Document
767 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Code Reusability Essay Example
Abstract Two major programming paradigms widely used are procedural programming and object-oriented programming (OOP). Both of these styles have some important differences that need to be evaluated when choosing which one to use. This paper will show the similarities and differenced in terms of procedural programming modules and objects in relation with reusability, security (in terms of hiding code), and the passing of data versus encapsulation.

Reusability of Code 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 upon by the program around it. A procedural programming is a module, function, or procedure designed for a specific purpose and performs only that one task. For outside programmers looking in these are relatively easy to follow and decipher when looked into. Procedural programming modules are most often written in the order they are intended to be executed with the exception of those called upon again later in the program. Modules of this type are good for reuse in the original program because they were designed for that program, but they are not very good for reuse in programs without extensive modification because they were designed to do one specific task for a particular program. This does not leave much room for any flexibility in the program. Reuse of codes can take the programmer a large

You May Also Find These Documents Helpful

  • Satisfactory Essays

    6. What is the difference between passing an argument by value and passing it by reference?…

    • 765 Words
    • 5 Pages
    Satisfactory Essays
  • Powerful Essays

    2. Using a similar approach as the example provided in section 2.2(textbook page 78) for “The Sale Price Program continued”, provide your program design for the program you analyzed for calculating the number of square feet in a house. Be sure to describe the fundamental tasks needed to solve the problem so you can use a modular design. Provide pseudocode of your overall design that includes the Main module and the order of the module calls (see page 82 for an example). Finally, list all of your pseudocode for each module (See example 2.6 on page 83 as an example).…

    • 832 Words
    • 4 Pages
    Powerful Essays
  • Satisfactory Essays

    Pt1420 week 2

    • 320 Words
    • 3 Pages

    Pseudocode is an informal language that has no syntax rules, and is not meant to be compiled or executed.…

    • 320 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    This paper will describe the variable naming rules of three different programming languages. These three languages are Visual Basic, Python, and Java. Each of these languages has different rules that apply to them and some similarities. I will describe the rules and the similarities and differences in the next few paragraphs.…

    • 878 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    IT104 Assignment Unit 5

    • 307 Words
    • 2 Pages

    Pseudocode is an informal language that has no syntax rules, and is not meant to be compiled or executed.…

    • 307 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Procedural language is used for developing simple applications. The languages that use the procedural programming are Pascal and C languages. Some of the benefits of the procedural programming are: easy to read program code, easily maintainable program code as various procedures can be debugged in isolation, code is more flexible as you can change a specific procedure that gets implemented across the program.…

    • 337 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    To understand the what the advantages of a declarative language as opposed to a procedural language, we must understand the difference between the two. A procedural language such as FORTRAN or Cabal (There are more) give precise instructions that tell the computer what to do. In other words a procedural language is your basic “if-this, then-that”. Specific variables are defined that tell the CPU how to process information. It takes a programmer that knows the intimate details of how the code works to ensure that programs work the way they are supposed to.…

    • 434 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    This paper will discuss the difference between procedural modules and object-oriented methods. How both methods work and some of the pro cons between the two methods.…

    • 926 Words
    • 4 Pages
    Good Essays
  • Powerful Essays

    here is for the specter of a quiz to always be hanging over the student where he knows he…

    • 83928 Words
    • 594 Pages
    Powerful Essays
  • Better Essays

    1) You can call the module several times instead of writing it out each time.…

    • 1580 Words
    • 11 Pages
    Better Essays
  • Good Essays

    Unit 3 research

    • 383 Words
    • 2 Pages

    In a procedural language you tell the computer each step to perform. The computer performs those steps and, if they are well written, you will end up with our desired…

    • 383 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    1. Problem definition: Design a program that will allow a user to Input a list of your family members along with their age and state where they reside. Determine and print the average age of your family and print the names of anyone who live in Texas.…

    • 467 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Project 1 Essay Example

    • 545 Words
    • 3 Pages

    Assignment Question 1: Read the scenario below and then analyze what is wrong with the hypothesis given.…

    • 545 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Poem: Go Down, Death

    • 540 Words
    • 3 Pages

    Go Down, Death User Rating: 8.6 /10 (18 votes) - vote - 1 2 3 4 5 6 7 8 9 10 Print friendly version E-mail this poem to e friend Send this poem as eCard Add this poem to MyPoemList Weep not, weep not, She is not dead; She's resting in the bosom of Jesus.…

    • 540 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    coach carter

    • 1349 Words
    • 6 Pages

    - analyze functional descriptions of small objects, which require the use of such technologies as sequential file access, dynamic memory allocation, robust user input and formatted program output;…

    • 1349 Words
    • 6 Pages
    Powerful Essays