Lesson 5: Changing someone's program and saying so
Unit overview - Previous: Lesson 4
About 45 minutes.
Goal
Children change one thing in another group's program (a remix), add a
NOTE: line that credits the group whose program they used, test the new
version, and say in one sentence what they changed and why.
Materials
- Per group of four: one "score" box, one set of number cards 0 to 20, and
the hoop-toss event cards (6 "IN HOOP", 4 "GOLD", 6 "MISS",
1 "GAME STARTS", 1 "BELL").
- Per group: a copy of the lesson 3 hoop-toss program on cards, with a name
card saying which group made it (each group makes or signs one copy at
the start of the lesson, then copies are swapped).
- Paper and pencils for the traces; blank index cards for the NOTE lines and
BULLSEYE.
- The example remix (below) on the board.
Steps
Opening (5 min)
- Each group writes its group name on a name card next to its copy of the
hoop-toss program. Copies are passed to the next group.
- Say: "Programmers often start from someone else's program and change it.
That is called a remix. When we use someone's work, we say whose it
was. That is called giving credit."
- Teach the new card:
NOTE: ... is a note for people. The computer skips
it, like a sticky note on a recipe.
Main activity (30 min)
Part 1: an example remix (7 min). Put up:
NOTE: Based on the hoop-toss program by Group B.
NOTE: We changed GOLD to 2 points so the scores are closer.
WHEN GAME STARTS:
SET score TO 0
WHEN IN HOOP:
CHANGE score BY 1
WHEN GOLD:
CHANGE score BY 2
WHEN BELL:
SAY score
IF score is greater than 4 THEN:
CLAP 2 TIMES
ELSE:
CLAP 1 TIME
Run lesson 3's List 1 with it: GAME STARTS, IN HOOP, MISS, GOLD, IN HOOP,
BELL. (0, 1, 1, 3, 4; says 4; 4 is not greater than 4, so clap 1 time. The
original said 5 with two claps.) Ask: "Did the NOTE lines change the
score?" (No. The computer skips them.)
Part 2: groups remix (12 min). Each group changes one thing in the
program it was given. Choices:
- change how many points GOLD or IN HOOP is worth (4 or fewer, so a
five-card game can never go past 20, the biggest number card);
- add a new event card, BULLSEYE, written on a blank card, with a script
that adds 5;
- change the number in the IF line (for example, greater than 6).
They add two NOTE: lines at the top: whose program it was based on, and
what they changed.
Part 3: test (6 min). Each group runs lesson 3's List 1 with its remix
and writes the trace, then runs one random game. (If they added BULLSEYE,
they shuffle it in with the other cards.) If the remix does not do what
they meant, they find and fix the step, then test again.
Part 4: show and say (5 min). Each group says one sentence: "We
changed ... because ...", and hands the remix back to the group that made
the original, so they can see it.
Discussion questions (with answers) (5 min)
- "Why did we write whose program it was?" (It is fair: they did the work
we started from. It also helps people find the original.)
- "Is a remix the same as taking someone's program away?" (No. The original
group still has theirs; we made a new version and said so.)
- "Why write what you changed?" (So other people, and you later, know what
is different and why.)
Closing check (with answers) (5 min)
Show the example remix from Part 1.
- "GAME STARTS, GOLD, GOLD, IN HOOP, BELL. What is said, and how many
claps?" (2, 4, 5; says 5; clap 2 times.)
- "What does the computer do with the NOTE lines?" (Skips them.)
- "Whose program was this remix based on?" (Group B's.)
Vocabulary
remix, credit, note (comment), original
Differentiation
- Support: The group changes only the number in one CHANGE card. The
teacher writes the NOTE lines with them.
- Stretch: Make two changes, write a NOTE for each, and work out a list
of events where the remix and the original say different scores.
- Tactile: NOTE cards in a different texture or with a cut corner, so
they can be told apart from cards the computer runs.
Safety
- Nothing is thrown. Only change programs on cards, not anyone's
belongings.
Teacher notes and misconceptions
- Some children think a NOTE line is a step. Run the program with the NOTE
lines covered: the result is the same.
- Credit here is between groups in the class. Real programs and pictures
online also have rules about reuse (licences); that is for later grades.
- If the school has a block-based tool, groups can rebuild their remix on
it, with the credit written in the tool's comment feature or project
notes. Check the tool against your school's rules first.