Skip to content

1. What is Pseudocode?

Pseudocode is writing the steps of a solution in plain English, ignoring the exact typing rules (the syntax) a programming language would force on you.

Here's pseudocode for making a peanut butter sandwich:

START
Get two slices of bread
Open the peanut butter jar
Spread peanut butter on one slice
Close the peanut butter jar
Put the slices together
END

No programming language looks exactly like that, but every one of them is built out of steps like these: things happen in order, one at a time.

Pseudocode lets you focus on what should happen before you worry about how to type it. That's useful because mistakes in your plan are much cheaper to fix than mistakes buried in fifty lines of code.

Try it

Write pseudocode for something you do every morning — brushing your teeth, getting dressed, anything with a clear set of steps.

Tip

It doesn't need to be perfect. It just needs to be clear enough that someone else could follow it and get the same result.

Next: draw.io Basics →