Preview

Programming Fundamentals: Reusability of Code Essay Example

Satisfactory Essays
Open Document
Open Document
729 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Programming Fundamentals: Reusability of Code Essay Example
Programming Fundamentals: Reusability of Code
Object-oriented programming and procedural programming are two programming paradigms. A programming paradigm is a fundamental style of computer programming, and they differ in the way different elements of the program are represented and how steps for solving problems are defined (Ragel, 2011). The above statements describes two popular ways of defining and solving a problem involving the need for a computer program and are similar in nature but also have some important differences that need to be weighed when choosing which one will be used. The similarities and differences will be discussed in terms of procedural programming modules and objects in relation to; reusability, security (as in hiding code), and the passing of data within the program itself.
A Procedural programming module is function, procedure, subprogram or subroutine within a program designed for a specific purpose and only does that one job (Haas, 2011). 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 other programs without heavy modification because they were designed to do a specific task for a specific program, and that does not leave much room for flexibility. Variables can be declared as local within a module and will be exclusive to that module. There is also the ability to create local variables within a given module but you have to remember to pass the correct data in and out using global variables, and they must be declared properly to work right. Considering the preceding, the use of procedural programming modules is an excellent approach to many programming problems

You May Also Find These Documents Helpful

  • Satisfactory Essays

    The data access object (DAO) software program design pattern encapsulates use of data by concealing its difficulty from end users (University of Phoenix, 2005). This design pattern is a concept offering an abstract interface to a database or perseverance method, which it only provides a few specified functions excluding the visibility of the database particulars. The DAO includes a mapping from the software calls to its perseverance layer that isolates the general public interface of the DAO.…

    • 579 Words
    • 3 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

    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
  • Good Essays

    In a procedural program, modules interact by reading and writing state that is stored in shared data structures.…

    • 793 Words
    • 4 Pages
    Good 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
  • 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

    It/210 Course Design

    • 2571 Words
    • 11 Pages

    Course Design Guide IT/210 Version 5 2 Week One: Introduction to Software Development Details Due Points Objectives 1.1 Describe the importance of using a structured, modular approach when creating program requirements, design, and code. 1.2 Identify how a computer processes and stores data. Course Preparation Read the course description and objectives.…

    • 2571 Words
    • 11 Pages
    Satisfactory Essays
  • Satisfactory Essays

    This course introduces students to object-oriented programming. It covers object-oriented tools for system analysis, design and development. The course teaches the significance of object-oriented programming, the keywords and constructs of the Java programming language, and the steps required to create simple Java technology programs.…

    • 414 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    A long time ago software developers or programmers did not use reusable code because there were not too many reliable, and efficient software or application software available. Therefore, whenever a big project comes forth the software developers or programmers tend to start building from the ground up. After many years of building software from the ground up for each project or request, the software developers had come to an agreement that building software from ground up is very costly and time consuming, especially for an inexperience software developer. Therefore, the software developers or engineers had come to conclusion that they need to develop and implement a platform where different software developers can benefit from each others codes or components.…

    • 671 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    It 210

    • 2960 Words
    • 12 Pages

    Prelude to Programming: Concepts and Design, Fifth Edition, by Stewart Venit and Elizabeth Drake. Published by Addison-Wesley. Copyright © 2011 by Pearson Education, Inc.…

    • 2960 Words
    • 12 Pages
    Powerful Essays
  • Satisfactory Essays

    unit 4

    • 691 Words
    • 4 Pages

    4. What is a local variable? What statements are able to access a local variable?…

    • 691 Words
    • 4 Pages
    Satisfactory Essays
  • Powerful Essays

    OOP Assigment 1 Sit 1

    • 4788 Words
    • 20 Pages

    Inheritance is when a class (subclass) has the same attributes and methods of another class (parent class); this is done by creating class from an existing class. While a subclass has properties derived for the parent class, it can also have properties of its own.…

    • 4788 Words
    • 20 Pages
    Powerful Essays
  • Better Essays

    Analyzing Essay Example

    • 990 Words
    • 4 Pages

    appeared Rose did not take this traumatic news lightly and the diagnosis left an “inescapable…

    • 990 Words
    • 4 Pages
    Better Essays
  • Good Essays

    CHAPTER11

    • 2591 Words
    • 18 Pages

    Which line of code will declare and create an instance of a new object variable called…

    • 2591 Words
    • 18 Pages
    Good Essays
  • Good Essays

    When it comes to writing a program there are so many ways a person can approach the problem. Think of it this way, a chef following a recipe can look at the ingredients and decided to add more of one thing and less of another or the chef can follow the recipe exactly. As long as the chef uses common logic on blending foods the dish will come out correctly. The same is true when building a program. A programmer has many tools to choose from to make it more or less complicated. The programmer also has several tools to choose from to ensure the program runs. So let me go over some of these essential tools right now and how they relate to one another.…

    • 779 Words
    • 4 Pages
    Good Essays