Beginner
50 mins
Teacher/Student led
+80 XP

The Four Steps of Computational Thinking, by Building

Learn the four steps of computational thinking — decomposition, pattern recognition, abstraction and algorithms — by planning a Scratch build and then coding it, naming each step as you work.

Teacher Class Feed

Load previous activity

    1 - Start ~5 mins

    In your last few sessions you made Scratch programs that used variables, loops, conditionals and events. Today you become the planner before you become the builder.

    Key point

    Here is the question: how do real programmers turn a vague idea ("I want a quiz game") into something they can actually build? They use four named thinking steps. By the end of today you will have planned a build of your own with those four steps and started making it in Scratch.

    2 - Teach and Predict ~8 mins

    Computational thinking has four named steps. We will use them on a real build today, so learn the names now:

    • Decomposition: break the big idea into smaller parts you can tackle one at a time.
    • Pattern recognition: spot parts that repeat or are similar, so you do not solve the same thing twice.
    • Abstraction: keep only the details that matter and ignore the rest for now.
    • Algorithms: write the steps in order, precisely enough that a computer could follow them.

    Turn to your neighbour for 30 seconds: say one of the four steps back in your own words. Then we will keep going.

    Worked example

    Worked example: a simple capital-cities quiz round. Here is each step on one line:

    • Decomposition: show a question, take a typed answer, check it, keep a score.
    • Pattern recognition: every question follows the same shape, ask, check, score.
    • Abstraction: ignore fancy graphics for now, just get one question working.
    • Algorithm: ask the question, get input, if the answer matches add one to score, say right or wrong.
    Key point

    Predict before you plan: pick one build idea now (an animated scene, a quiz round, or a simple chase) and predict which of the four steps will do the most work for that idea. Hold that thought.

    3 - Hands-on: Plan with the Four Steps, Then Build the First Part ~15 mins

    Open your saved Scratch project area the class way (the way your teacher has shown you to open and save work in this room). If your earlier work is missing, ask your teacher or start a fresh project; you only need a clean stage today.

    Key point

    Choose one build idea: an animated scene, a quiz round, or a simple chase. Then work through the four steps on paper or in a shared doc. Keep the first three steps short and quick, the only one that needs full detail before you build is the algorithm for part one.

    1. Decomposition. List the smaller parts your build needs. Aim for three to five parts. Write the heading "Decomposition" above your list so you are naming the step. Keep it brief.
    2. Pattern recognition. Look at your list. Mark any parts that repeat or look similar (for example, every sprite that moves the same way, or every question asked the same way). A quick note under a "Pattern recognition" heading is enough.
    3. Abstraction. Cross out anything that does not matter for a first working version. Keep it simple. One line under "Abstraction".
    4. Algorithm. This is the one to get right. Write the first part of your build as numbered plain-English steps, in order. This is your algorithm for part one only.
    5. Now build that first part in Scratch, following your numbered steps. Use the blocks you already know: sequence, a variable, a loop, an event, or a conditional as your plan needs.
    6. Run it. Does it match your numbered steps? If not, that is a planning gap or a bug, fix one thing at a time.

    4 - Your Turn: Build the Rest of Your Plan ~12 mins

    Keep going and build the next parts of your plan in Scratch. As you work, name out loud or in your notes which of the four steps you are using at each moment.

    What done looks like:

    • At least two parts of your build are working in Scratch and match your algorithm.
    • You have named each of the four steps at least once during your build.
    • You spotted at least one pattern and reused a block or idea instead of repeating it.
    • Your project is saved the class way before the recap.
    If something breaks

    If something breaks, use the debugging routine: read the symptom, find the block, form a hypothesis about why, test your fix, and revert it if it was wrong. Fix one thing at a time.

    5 - Make Sense ~5 mins

    Hands up: who got at least one part working? What broke, and how did you spot it?

    Now name the four steps against what you actually did today. Decomposition was your list of smaller parts. Pattern recognition was every time you noticed something repeating and reused it instead of copying. Abstraction was every time you left something out to keep version one simple. Algorithms was your numbered plan that the Scratch blocks followed. The big idea: the planning made the building easier, you were not just guessing with blocks.

    123learn · Online learning platform

    Unlock the full learning experience

    You're previewing this lesson. Get full access to this lesson and hundreds more — each one ready to teach, with interactive activities, printable resources and pupil progress tracking built in.

    Hundreds of curriculum-aligned lessons
    Interactive activities in every lesson
    Printable resources & progress tracking
    Copyright Notice
    This lesson is copyright of Coding Ireland 2017 - 2025. Unauthorised use, copying or distribution is not allowed.
    🍪 Our website uses cookies to make your browsing experience better. By using our website you agree to our use of cookies. Learn more