March 2nd, 2020
Guys, I’m so stoked today! I mean, who wouldn’t be! So excited to really get into guiding all of you into learning Javascript! By the way, if you haven’t seen my introduction to javascript blog, click on the link below!
Javascript in 15 Days: Prologue
So, let’s dig right in! Today we will be learning about pseudocode. Now now, this is not exactly in Javascript syntax, but don’t worry, they are related! So, what is pseudocode, you may ask? Well, pseudocode is basically a set of steps written in non-specific form, aimed to help you plan ahead before you write your code.
Start Program
Enter two numbers, A, B
Add the numbers together
Print Sum
End Program
So, as you can see above is an example of pseudocode with a goal to find the sum of two numbers, I know what you’re thinking, ain’t this too easy?? Look, I’ll explain real quick here. Pseudocode is used in a format similar to this to aid us in planning step by step in writing our code, so we don’t really get stuck in the middle. Not to mention, we usually make our pseudocode as detailed as possible, so when it is time to write our code, we can just write the code based on the pseudocode we wrote beforehand.
So, another question right? Why write it? Why not just write code instantly? Well, for a couple of reasons, as mentioned above we can help plan ahead so we maximize efficiency, and therefore work at our fastest pace with utmost accuracy. Another is also that, if you learn not just one language, you can refer to this pseudocode, and really, no matter which language you can still write your code. Now, you may not see it as a more efficient way of writing code, but trust me when I tell you that when your code becomes large and complicated, pseudocode can also be a tool to which you can refer to if you get stuck. Not to mention, pseudocode ain’t a one-time thing. You can do a basic skeleton and update it as you go.
Now, let us sum up today’s lesson, so pseudocode is a set of steps to plan ahead before writing code and is versatile as it is not bound to one programming language, and may also be called the bridge between human language and programming language. So, here ends our first day, and if you want you can try to do my challenges below. See you tomorrow and thanks for coming!!
1. how to cook instant noodles?
2. how do you get to work?
3. how to make a fruit punch?
I guess that’s all for now and if you have any questions, feel free to contact me on LinkedIn or Twitter! Have a nice day!