Tip of the Day: Pseudocode

The word “Pseudo” comes from Greek and it means “lying” or “false”, in other words something superficially appears to be one thing, but it is something else.

In coding words, it is writing code that is not a working code.

Think of Pseudocode as your blackboard or your brainstorming before writing actual code. The cool thing of Pseudocode is that it does not adhere to a specific syntax.

For example:

//Move character from A to B using transform
then you would translate this into real code:

//If the character can run, then do something
This would translate to:
If(canRun == true)
Debug.Log(“Can Run”);

You can also use Pseudocode when writing a tutorial, instead of feeding the reader with the exact code, you can write him a Pseudocode that he can follow instead of just copying the pasting the actual code. This would force the reader to actually learn something.

We should really pick up the habit of writing pseudocode more often.



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
Mohamed Hijazi

Mohamed Hijazi


A knowledge seeking biologist who is following his passion into a full time career in Unity / Game Development. https://www.linkedin.com/in/mohamed-hijazi/