-
Title:
Pair Programming
-
Description:
Featuring Fiona and Semira from Generation Code.
Special thanks to Eckstein Middle School for use of the space.
-
Today we're going to learn about pair programming.
In pair programming, you work as a team. Why
-
should two people use one computer? Because
two heads are better than one. We work together
-
in an interesting kind of way. Because we're
interesting people. We are interesting people.
-
In pair programming, you and your
partner are going to sit down together at
-
one computer and you're both going to work
on the same project. Right now we're working
-
on Code Monsters!
-
In pair programming, one
person is the driver and the other person
-
is the navigator, just like driving a car.
-
Your choice, driver or navigator? Driver.
-
The driver sits at the computer and is the one using
they keyboard, mouse, or touch screen and
-
controls the main actions of the computer.
I'm setting the arrows so that they make the
-
character move in the direction that he's
trying to move. And the other person is the
-
navigator. The navigator helps the driver
by answering the driver's questions and pointing
-
out potential problems or mistakes.
-
Go left. Instead of righty tighty, go right.
-
Communication
is key to successful pair programming. Don't
-
DON'T: insult your partner. DO: be respectful. DON'T
be a bossy navigator, because nobody likes a backseat driver.
-
Why can't you do this? Wait, hey! Stop that, give it back. (DON'T grab the driver's mouse/keyboard)
-
Communication is key to successful
pair programming. You and your partner
-
should always be talking.
(DO talk to one another about the work)
-
The driver can explain what s/he is doing.
(DO explain what you are doing)
-
The navigator can help suggest what to do next.
(DO think ahead and make suggestions)
-
The navigator should be thinking about
the big picture and the driver focuses on
-
the details. Both roles are important
-
Want to switch? Okay. I'm the driver now. (DO switch roles often)
-
Be sure to switch roles often.
-
Wait a second, why isn't this working?
-
You need to attach it up there,
look there's a hole.
-
Did you see how my partner helped me to figure out the puzzle with fewer tries?
-
She caught my mistakes. Pair programming
-
is all about working together as a team.
-
DO: Be respectful, talk to one another about the work, explain what you are doing
-
DO: think ahead, make suggestions, switch roles often.
-
DON'T: be a bossy navigator or grab the driver's
mouse/keyboard.