Skip to main content
โ† Back to Traditional Coding samples
โŒจ๏ธTraditional Codingยท10 minยทSample Lesson

Feed the Code Monster: Giving Step-by-Step Commands

Imagine a friendly monster named Blip who will do exactly what you tell him โ€” but ONLY exactly what you tell him, in the exact order you say it. If you tell Blip "eat the cookie" but forget to tell him "walk to the cookie" first, Blip just stands there, confused, next to an uneaten cookie. That is the number one rule of coding: computers (and monsters!) need every single step, in order, with nothing skipped.

What You'll Learn

- What a command is and why order matters - What a sequence is (a list of steps in order) - How to spot a missing step that would confuse a computer - How to write your own 5-step command sequence

A Command Is One Small Instruction

A command is one small instruction, like "move forward" or "turn left" or "jump." Computers (and our friend Blip the monster) cannot guess what you mean โ€” they can only follow the exact commands you give them, one at a time. If you want Blip to reach a star three steps to his right, you cannot just say "get the star." You have to say: "turn right, move forward, move forward, move forward, grab."

Sequence: Putting Commands in the Right Order

A sequence is a list of commands in the order they must happen. Order matters enormously! "Put on your shoes, then put on your socks" gives you a very uncomfortable result compared to "put on your socks, then put on your shoes." Real programmers call this exact idea sequencing, and it's the very first building block of every computer program ever written, from simple games to the apps on a phone.

The Silly Sandwich Test

Try writing the steps to make a peanut butter sandwich as if talking to someone who has never seen a sandwich. Most people forget steps like "open the jar" or "put the bread on a plate first" โ€” just like Blip would get stuck!

What Happens When a Step Is Missing?

When a step is missing, the monster (or computer) gets stuck or does something silly, but it never just "figures it out." If you tell Blip "jump" without first telling him "walk to the edge," he might jump in the wrong spot entirely! This is exactly what happens when real code has a bug โ€” the computer isn't broken, it just followed the steps exactly as written, and a step was missing or in the wrong order.

Put these commands in the correct order for Blip to brush his teeth.

Terms

1st
2nd
3rd
4th

Definitions

Brush teeth in circles
Put toothpaste on the brush
Pick up the toothbrush
Rinse mouth with water

Drag terms onto their definitions, or click a term then click a definition to match.

โ“

Why can't Blip the monster just 'get the star' without more specific commands?

โ“

What is a 'sequence' in coding?

๐ŸŽฏ

Write Blip's Sandwich Sequence

On paper, write 5-7 numbered commands telling Blip exactly how to make a peanut butter and jelly sandwich, starting from an empty table with bread, peanut butter, jelly, and a knife sitting on it. Be so exact that someone who has never made a sandwich could follow your steps perfectly. Read your steps out loud to a family member and have them 'act like Blip' โ€” doing only exactly what you say โ€” to see if you missed any steps.

Want to keep learning?

Sign up for free to access the full curriculum โ€” all subjects, all ages.

Start Learning Free
Feed the Code Monster: Giving Step-by-Step Commands | Free Sample | HYVE CARES | HYVE CARES