GoalExplain why working in a team helps when we write programs, and how to work well together.
New words
team · a group of people who work together to do a jobreview · to look carefully at someone’s work to find mistakesnavigator · the team member who reads the algorithm and checks while the other builds
Explanation
A program can be written by one person or by a team. A team shares what its members know, so everyone learns new skills. When the team is stuck, many ideas help to solve the problem. Another pair of eyes can review the code and see a mistake that the builder missed, so there are fewer errors. Working in a team also helps us practise listening, talking and being kind. A good way to work in a pair is for one person, the driver, to build the program and the other, the navigator, to read the algorithm and check each step. Swap roles often.
Worked examples
Amir and Nodira build a pet box program. The algorithm says “set volume to 80”. Amir is the driver and types 800. Nodira is the navigator. She checks the block against the algorithm and sees 800 instead of 80. The volume only goes up to 255, so 800 cannot be right. They fix it together. A second pair of eyes caught the mistake.
Benefit
Example
learn from each other
Nodira teaches Amir where the Music group is
solve problems
they try two ideas for the pause and pick the best one
fewer errors
Nodira finds the wrong volume number
social skills
they take turns and listen to each other
Each benefit of a team has an example.
Instead of …
Say …
“That is wrong, give it to me.”
“Let’s look at step 3 together.”
“You never listen.”
“Can you say that again? I want to understand.”
Kind words make a team work well. Helpful sentences point to the problem, not to the person.
Class activity
Driver and navigator (in pairs): you need a set of block cards that make a short program, plus an algorithm card. One of you is the driver and lays the cards on the table. The other is the navigator and reads the algorithm one step at a time. Before the game starts, the teacher swaps one card for a wrong one. Can the navigator spot the mistake? Swap roles after each step. Afterwards say what helped you most: new ideas, finding mistakes or being kind?
Practice
1
Name two benefits of working in a team to write a program.
Any two of: we learn from each other, we solve problems together, there are fewer mistakes because someone checks the code, and we practise social skills.
2
The algorithm says: show icon house, set volume (80), play sound hello until done. A teammate checks this program. What mistake do they find?
The volume is 8, but the algorithm says 80.
3
Which is the kind and helpful thing to say when a partner makes a mistake? (a) “That is wrong. Give me the mouse.” (b) “Let’s look at step 3 together.”
(b). It points to the step, not to the person, and it invites them to work together.
4
In pair coding, what does the navigator do?
The navigator reads the algorithm and checks each step while the driver builds the program.