Pair Programming

Pair Programming

[Together] Great things come in pairs! Peanut butter and jelly. Salt and pepper. Batman and Robin. Um…pizza and pepperoni. [Amani] I disagree with you there. I’d say pizza and spinach. [Michelle] Eww. [Laughing] Pair programming is when two people work together at the same computer to write code. There are two roles: one person is the driver, and one person is the navigator. The driver is the person using the computer,
actually typing the code. The navigator is keeping track of the big
picture and helping the driver decide what code to write next. Your driver is your jedi and your navigator
is your yoda. [Brad] Oh, you already wrote the test, or are we missing? [Clare] No, I kinda faked it cause I got partway through. [Brad] Ok, I’ll make a note that we should come back to that. [Clare] Ok. Sometimes when I’m stuck and I’m programming on my own, I’ll ask somebody else to be my pair programmer because they may see a solution that I missed. [Amani] Like this one? [Michelle] Mmm..yes. [Amani] Ok. It’s important to switch roles often so that we can practice both roles and learn from one another [Amani] Um, you know, you wanna switch? [Michelle] Yeah, that’s, yeah. [Amani] I think I’d rather be navigator right now. I do do mistakes while coding. Of course it’s normal. [Michelle] This button isn’t working. [Amani] It’s a bug. [Laughing] I think pair programming makes it a lot easier to ask for help. You figure out that making mistakes is okay. Oops. And you learn how to forgive yourself and
also other people when you’re working with a partner, which makes you become more sociable and easier to talk to. [Laughing] Which is a useful skill in life. [Laughing] Yep. So when you get the opportunity to get other
people’s point of view on things, it’s very important to take that advice because you
realize you were wrong, you accept the feedback, and then you become better because of it. Hey it works! You’re looking at the human part and the code
part, you’re not just coding without any emotions. You’re coding as a person, with another person. That’s what I was thinking! [Laughing] And as people, we need to have good conversations while we’re coding so that we don’t become like robots. Pair programming is working together to write
code as a team and as friends.

15 thoughts on “Pair Programming”

  1. Yoda was a Jedi.
    A second pair of eyes helps.
    Two heads are better than one, usually.
    Having to explain what you are doing as you are doing it frequently clarifies the idea.

Leave a Reply

Your email address will not be published. Required fields are marked *