What is Pseudocode?

How is Structured English Useful to Software Developers and Coders?

11 Comments
Join the Conversation
Coding - Vangelis Thomaidis
Coding - Vangelis Thomaidis
Pseudocode or Structured English is often used to aid communication between technical and non-technical people, and between experienced and less experienced programmers.

An essential part of the design process when developing computer software is to work out what the program code will do. There are a number of methods and techniques to help but one of the most straightforward to use and easiest to understand is using pseudocode. Pseudocode is also known as an algorithm or Structured English.

The dictionary.com definition for an algorithm is "a set of rules for solving a problem in a finite number of steps" and this is precisely what program code does. Pseudocode is produced by writing down a sequence of steps that will meet the program requirement. It is called pseudocode because it is almost programming code - but not quite - using a mixture of English and code-like statements rather than actual program code.

Pseudocode makes use of programming control structures (sequence, repetition and selection), which means it can then be used as a guide to produce the actual program. It may also include information about the data required (for example, variable names and types) and output to be produced (for example, report formats).

Pseudocode is Useful

There are many reasons given for using pseudocode, which makes it worthwhile to understand exactly how it can help:

  1. Algorithms and pseudocode can be used to code in any programming language.
  2. Pseudocode and Structured English is easier to read and understand than reading program code direct, especially for less experienced programmers or people learning a new programming language.
  3. Writing down what needs to be done before starting to code reduces the total software development time. It is more efficient to write pseudocode and then produce code, rather than start with coding.
  4. When coding a complex algorithm, pseudocode can be used to check the method is correct with a non-technical person as Structured English should make sense to everyone. For example when producing a set of figures using data which can be interpreted a number of different ways, it is helpful to check the pseudocode with the person who asked for the program to be developed.
  5. The Structured English can used as comments in the program code.

These points support using pseudocode to increase the quality of program code, as it helps ensure user requirements are met and that program code meets good software development practice.

There are Downsides to Using Pseudocode

It is not always appropriate to use Pseudocode and there are arguments against using it:

  1. Pseudocode takes time to produce and if a relatively straightforward program is being written by an experienced programmer it won’t be necessary.
  2. Pseudocode is language independent, so doesn’t allow all features of a language (or a particular system) to be exploited – sometimes pseudocode can be written one way and then programmed more easily and efficiently another way.

There are more reasons for using pseudocode than against and it is definitely worth investing time to understand what it is and how to produce it.

Dawn Brewer, Writer, Dawn Brewer

Dawn Brewer - I have a portfolio career - as a writer, management consultant, instructor and coach - after twenty years in the corporate world. My ...

rss
Advertisement
Leave a comment

NOTE: Because you are not a Suite101 member, your comment will be moderated before it is viewable.
Submit
What is 10+10?
11 Comments

Comments

Jan 6, 2010 7:37 AM
Guest :
IT'S ALRIGHT
Jan 6, 2010 7:38 AM
Guest :
this is boring
Jan 6, 2010 7:39 AM
Guest :
IT'S ALRIGHT BUT FOR ME IT'S BORING BUT FOR OTHER PEOPLE IT'S INTERESTING.
Jan 6, 2010 7:41 AM
Guest :
ITS GOOD
Jan 6, 2010 12:03 PM
Guest :
it was very interesting!
Jan 14, 2010 7:26 AM
Guest :
ITS GOOD AND HELPFULL
Jul 6, 2010 1:34 AM
Guest :
its very interesting
Nov 25, 2010 11:08 AM
Guest :
I hate the pseudo code. Given that I need 1 hour to write program it will take me 2+ hours to rewrite everything into pseudo code. It might useful for someone, but I rather see it as a waste of time. When I have to fix something in existing system I don't like to refer to the pseudo code which is usually different from existing code due to the complexity of high level programming languages...
Dec 11, 2010 9:25 PM
Guest :
It's useful for those learning or merely interested. Thanks for putting it here for us to read.
Oct 7, 2011 2:04 AM
Guest :
It good, educating!!!
Dec 12, 2011 9:49 PM
Guest :
Thnx ^^
11 Comments
Advertisement
Advertisement