What is Pseudo Code, and why you need to write it

What is Pseudo Code?

Pseudo Code is a way to write programming code in a form that is readable by humans, and is not meant to be ran by a computer. It’s purpose is to clearly specify what a piece of code is doing in an easy-to-read-and-understand way.

Pseudo Code and actual code

Consider the following examples:

Which one is easier to understand? Especially for someone who isn’t a programmer.

Why should you use Pseudo Code?

  • Pseudo Code is a great way to prototype a script/piece of code. You can write out what you need it to do and how, then go back and write the code for that individual line underneath it. This results in less trial-and-error, less troubleshooting bugs, and less redesigning code.
  • Pseudo Code allows anyone, not just programmers, to get a pretty good understanding of what the code is doing.
  • Pseudo Code often results in sentences that are far less complicated than their code counterparts, reducing mess and improving understanding.
  • Pseudo Code makes writing documentation easier, since it is very easy to quickly understand what code is doing, even if you wrote it years ago, or someone else wrote it.

--

--

--

Unity game developer / C# Programmer / Gamer. Australian (Tasmanian) indie games developer for 10+ years. Currently looking for games industry employment.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Integrate Google Sheet to Flutter App

How to configure a reverse proxy in AWS?

Bad programming habits developers learn

Sherlock Holmes and the mythical data driven decision

Kotlin algorithms — Introduction

71st Monthly Technical Session

Metamorphosis Gene of Insurance PAS Journey

Adding Post-Processing Into My Game

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Vincent Taylor

Vincent Taylor

Unity game developer / C# Programmer / Gamer. Australian (Tasmanian) indie games developer for 10+ years. Currently looking for games industry employment.

More from Medium

All Hail Pseudo Code

Design Patterns: State Pattern

Interfaces vs Abstract Classes

Infinite Runner in 3 Steps