Why and How to Pseudocode
Brandon Theard
Posted on August 5, 2019
Pseudocode is an informal description of a computer program or algorithm. For fellow New Orleans programmers, it is the 'makin groceries' list for the great gumbo we are going to serve at dinner or what not. But seriously it is just symbolic code for that will be translated into a programming language to be executed.
When writing pseudocode, we expect to have singular simple statements that is in order of execution for our said program. There are caveats to this rule such as functions, which I like to define what I am returning first and write my pseduocode as a series of steps that describe the properties of that return value.
Keywords, are special words reserved in the programming from use as a variable name. This is important because the keywords specialty can mean they are used as parameters or commands. In pseudocode they can be used indicate common input and output processing operations. They should also be capitalized to let other users who may read your program know that you are referring to a keyword in that language.
Also the major purpose of pseudocoding is to identify how or what the code will look like and how we will arrive to our chosen destination. As I pseudocode, the vision of the code becomes slightly clearer it is like a road map. For example, when I need a statement that evaluates expressions, executes instructions, or repeat actions based on a condition that evaluates to True or False, I began to realize that I may or may not need a conditional statement or iteration in my actual code.
Like previously said the pseudocode should be written in a top to bottom flow. However, when solving advanced tasks it is necessary to break down the concepts in block of statements in different locations. This is especially true when the statements in question serve a particular purpose.
There are no technical rules for Pseudocode. It is meant to be human readable and still convey meaning and flow.The goal of writing pseudocode is to provide a high-level description of an algorithm which facilitates analysis and eventual coding.
Posted on August 5, 2019
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.