Building With Blocks

Make a program by dragging blocks, then use it to switch a real light on and off.

This page lists what a learner is able to do at the end of this class. It does not carry the class itself. The lessons, exercises and answers stay in the classroom and in the book.

What you will be able to do

What the class is really about

Programming has a reputation problem. Most people believe it starts with typing strange punctuation into a black screen, and that one wrong character breaks everything. This class removes that barrier by removing the typing.

You build a program by dragging blocks together. The blocks only fit where they make sense, so the kind of error that stops beginners cannot happen. What is left is the actual thinking. This happens, then this happens, and this part repeats until something changes. That is programming. The punctuation was never the hard part, and a learner who has built something this way is much harder to intimidate later.

Once a program runs on the screen, we take it off the screen. A Raspberry Pi is a full computer with a row of physical pins along one edge, and software can switch those pins on and off. Wire an LED to one of them, run a few lines, and the light blinks.

That moment does something specific to a learner. Until then, code has only ever produced things on a display. Now code has changed something in the room. The line between software and the physical world stops being an idea, which makes everything afterwards about sensors, robots and smart devices far easier to think about.

You also read a script you did not write, block by block, and work out what each part is doing before you change anything. That is the skill the next class builds directly on, and it is the reason we do the reading before the writing rather than the other way round.

Careful use

Code verification. Checking AI-written instructions against what the device actually does.

Careful use is not a separate lesson at the end of the course. A piece of it belongs to every one of the eight classes, and this is the piece that belongs to this one.

How this class is taught

  • One core concept. The class carries a single idea. Nothing is covered twice and nothing is rushed.
  • Hands before theory. You do the thing first. The explanation lands better once you have seen what happened.
  • Practice in company. Weekday slots in the lab follow the weekend class, with somebody there to help.
  • Mixed ages at one table. The youngest in a batch may be ten and the oldest past fifty. Each takes something from the other.

Chapter 5, The Arduino and AI as Your Coder · Chapter 7, Speak, See, Create

All eight chapters

How to apply