2D Galaxy Shooter — Why We Use Pseudo Code

Hello all!

Today, I am going to tell you the importance of pseudo code and why/how we use it.

Why pseudo code is important in coding

It is important because you are able to write down the meaning of the code you want in English before figuring how to implement it using real code and they do not affect your code in anyway, it just ignores it.

Doing this may also help with remembering what a code means later when you are thousands of lines in the script.

How to make pseudo code

When you need to write pseudo code, there are a couple ways to go about it:

Using //
  1. Use “//” at the beginning of each line
Using /* and */

2. Using “/*” at the beginning of a set of lines and “*/” at the end
This method is best for taking a chunk of code out of the script without really removing it.

Format of pseudo code

So we have less confusion later in life, keep to these rules:

  • Write one statement per line.
  • Be specific.
  • Indent each step so its clear, what goes where.

This has been the importance of pseudo code and how to use it!

Thank you for your time!

--

--

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
Marcus Cohee

Marcus Cohee

20 Followers

I am starting Unity and learning the ropes as I go! Let’s take this journey together!