The Pseudocode Programming Process by pptfiles


									The Pseudocode Programming
                     Chapter 9
   Introduction
   Design the routine.
   Code the routine.
   Check the code.
   Clean up loose ends.
   Repeat as needed.
   The term "pseudocode" refers to an informal, English-like
    notation for describing how an algorithm, a routine, a
    class, or a program will work.
   The Pseudocode Programming Process defines a specific
    approach to using pseudocode to streamline the creation
    of code within routines.
   Use English-like statements that precisely describe specific operations.
   Avoid syntactic elements from the target programming language.
       Pseudocode allows you to design at a slightly higher level than the code itself.
       When you use programming-language constructs, you sink to a lower level,
        eliminating the main benefit of design at a higher level, and you saddle yourself
        with unnecessary syntactic restrictions.
   Write pseudocode at the level of intent.
       Describe the meaning of the approach rather than how the approach will be
        implemented in the target language.
   Write pseudocode at a low enough level that generating code from it will
    be nearly automatic.
       If the pseudocode is at too high a level, it can gloss over problematic details
        in the code.
       Refine the pseudocode in more and more detail until it seems as if it would
        be easier to simply write the code.
Design the routine
   Check the prerequisites
   Define the problem the routine will solve
   Name the routine
   Decide how to test the routine
   Research functionality available in the standard libraries
   Think about error handling
   Think about efficiency
   Research the algorithms and data types
   Write the pseudocode
Code the Routine

To top