First lesson of the course. No code today: we learn to think like someone who writes instructions for a machine.
By the end, students can say what programming and an algorithm are, and why every word of an instruction matters.
כל הסצנות במצבן הסופי, עם ההערות של המרצה. נוח לחזרה מהטלפון.
First lesson of the course. No code today: we learn to think like someone who writes instructions for a machine.
By the end, students can say what programming and an algorithm are, and why every word of an instruction matters.
Tom's definition: programming is giving a computer step-by-step instructions, to tell it what to do and how to solve a problem.
Three parts, one per click. Instructions: people write them with words and symbols (that is the code). Language: fixed rules and words, like C, Python or JavaScript. Translation: the computer turns the words into ones and zeros that its processor can run. The next lesson is all about that translation.
Ask: which programming languages do you know by name?
From Tom's "What is programming" slide. The video is 16 minutes; show the first few minutes in class and leave the rest for home.
Do not stop on details of each language. The point: there are many languages, and they all give a computer instructions.
Before the first click, only the picture is on the screen. Pairs write their own steps for "prepare a cup of tea" (3 minutes), for someone who has never made tea.
Classroom move: you are the computer. Take one pair's list and act it out word for word. "Pour the water" with the kettle still unplugged? You pour cold water. "Put in the tea bag" without saying where? You hold it in the air. Then click through Tom's 13 steps: each click runs one line and the picture changes.
Point at step 1 (a check), step 3 (an exact amount) and step 6 (a wait with a clear condition).
Classroom move: one student stands at the board with their back to the screen. The class gives instructions; the student draws exactly what is said, nothing more. Then click through Tom's 8 steps.
Watch steps 2 and 4: "above the square" leaves the roof floating, and the door floats too, until steps 3 and 5 say exactly where. Step 8 is the end condition: the drawer knows when to stop.
Something every student does many times a day, without thinking. Pairs write the steps first, then compare with Tom's 11 steps.
Notice how many steps are checks (6, 9, 11). People skip them in their heads; a careful algorithm writes them down. Ask: what goes wrong if step 6 is missing? (The message goes to the wrong person.)
The three lists share four things. Each one appears with a quote from the lists we just ran.
Exact: numbers and units, no "a bit". In order: one action per step. Checks: the list tests that things are right. A clear end: the reader knows when the task is done.
The word comes from al-Khwarizmi, a ninth-century mathematician from Baghdad whose book showed step-by-step methods for calculating.
Four vague instructions. Students rewrite each one in their notebook first (one minute), then click a card (or the next step) to see the exact step from Tom's lists.
Ask after each: what would a computer do with the vague version? ("Wait a bit": how long is a bit?)
Tom's chain: human idea → instructions → computer actions → result, with the text message as the example.
Last click: a computer is an electronic machine. At its lowest level it responds to patterns of bits. It does not understand words like calculate, repeat or temperature. A programming language gives us a practical way to write instructions that can be translated into something the processor can run. That translation is the next lesson.
Show of hands for each answer before anyone clicks. Then click the answer the class chose.
The computer waits forever: it does exactly what step 6 says. This is our first meeting with a program that never ends; we will see it again with loops.
The words of this lesson in English and Hebrew. Students copy them into their notebooks.
In pairs, 10 minutes. Each pair writes the algorithm on paper. Then pairs swap papers: one student reads the steps aloud, another acts them out with a real multimeter and battery if the lab has them.
Collect two or three lists and read the best check and the best end condition aloud.
Next lesson: how instructions written by people become bits that a processor runs, and where the C language came from.