Skip to content
Ryan James
Menu

← Blog5 min read

Pair Programming

For teachers new to CS or even veteran teachers, pair programming is a way of having students work in teams of two to work on a program. I've heard of teachers setting up pair programming in one of two ways. The first method is to assign a programming problem to a pair of students and ask them to work the problem. Generally there is little structure to this type of pair programming and requires the students to organize themselves and work together efficiently. The second method, which is preferred is to only allow the students to use one computer to work on the problem. The student that is using the computer is not supposed to make decisions, but do what the second student instructs them. I think of this almost like a tutorial where the student not typing is teaching the student at the computer. Unless you're an expert in this kind of teaching, then you should continue reading.

Pair Programming

A Little Background

For teachers new to CS or even veteran teachers, pair programming is a way of having students work in teams of two to work on a program. I’ve heard of teachers setting up pair programming in one of two ways. The first method is to assign a programming problem to a pair of students and ask them to work the problem. Generally there is little structure to this type of pair programming and requires the students to organize themselves and work together efficiently. The second method, which is preferred is to only allow the students to use one computer to work on the problem. The student that is using the computer is not supposed to make decisions, but do what the second student instructs them. I think of this almost like a tutorial where the student not typing is teaching the student at the computer. Unless you’re an expert in this kind of teaching, then you should continue reading.

The Podcast

Ok, so I’m still at work for the Spring 2022 semester. I haven’t been to a conference listening to great speakers or anything. But, I have become overly obsessed with a new podcast digesting as much of the episodes as I can - it’s called Remotely Interesting. You need to give the episode, 008: Pair Programming and Mob Programming, a listen. So let me set it up. This podcast is presented by Netlify (hey there, Netlify rendered these HTML paths and pages). The podcast focuses on a team of remote web developers that work for Netlify. Each episode is about a different aspect of their work, their team, or the tech that they are using. If you’re interested in modern web development, then definitely add this podcast to your list. But let’s get back to the episode. The episode is all about pair programming in the tech industry and how it is used. It’s so good to hear people in the industry talk about this. After listening to this podcast, I really wanted to start thinking about how I can do a better job of pair programming in classes.

Rolling It Out

In my classes, I do a lot of live coding for my students. It’s almost like a “Learn with Mr. James” as we solve a programming problem together. I guess it’s kinda like watching a Twitch stream, but IRL. Now, I want to turn that modeling of programming into student activities. My plan at the beginning of my programming classes/units is to do this for a week or so. Give the students some background in programming syntax, file names, a bit of git flow, etc. I want to make sure they have all of the skills needed to go off on their own. Then, I’m going to have them work on a homework assignment and listen to the podcast episode and answer some reflective questions about the episode. I want them to give it serious thought about how they can use this to develop their skills. Then, the next day in class, we’ll have a class discussion before breaking into groups. In groups they are going to create their own protocols for pair programming. I want them to develop the process for efficient pair programming so that they have a deeper connection to the act of pair programming. I understand that I’ll be throwing a day away really to just get students to understand instructions for programming. My thinking is that this one day will create benefits that will last the entire year. I plan to shake up the pairs as the year progresses and have them learn to pair program with different people.

In the future, you know this summer or fall, I plan to have all this more organized. These are just my initial thoughts and I’ll have this as a structured activity for students. I’m not planning to host this activity on TpT or anything like that. I’ll most likely share this on the socials when I get an activity formalized. Let me know if you want to collaborate!

Keep coding!
Ryan