Why you need to write pseudo code
Day 8- Making 2D Space Shooter Game
Pseudo code is not an actual programming language. So it cannot be compiled into executable program. It uses short terms or simple English language syntax to write code for programs before it is actually converted into a specific programming language.
As you can see in the above image, I am writing my concept for how my player is going to move. It is written in plain English so it is easy to understand and reflects what conditions I want to set for my player to move.
Why do this? The reason behind it is simple: when you are solving a programming questions and code in given programming language, you have to specify all the details in actual code necessary for the program to compile and execute, whereas when you write pseudo code, you focus on the general idea of what the algorithm is supposed to do, without having to think about every little implementation detail and get bogged down in technical issues.
In short, It is your answer to the question “How do I get there from here?”. It serves as your concept in words and gives you something to read and review. So it is often good to write pseudo code for the most important algorithms in your program if you are used to programming and if you are a beginner then it is best practice to first write how you are going to solve the programming question in plain English and review if your idea works and if does then jump into actual programming afterwards.