En af de ting, som vi er overbevist om, er værdien af samarbejde og at lære fra hinanden, især når det handler om programmering. "Parprogrammering" er en øvelse, der fremmer det, og det bliver stadig mere populært, både i industrien og i den akademiske verden, og hvis du har et klasseværelse, så er det en øvelse, du kan lave i det!
I parprogrammering i dens simpleste form, vil et par elever arbejde sammen om en programmeringsopgave. Men hvis du bare fortæller dine elever at de skal danne "par", kan du opleve at én person gør alt arbejdet, eller de råber ad hinanden, eller bare ikke lærer af hinandens erfaringer. Så det er faktisk nyttigt at formelt indføre parprogrammering og gøre det på en mere struktureret måde. Her er vores anbefaling:
  • If you can, it can really help if you actually have "pairing stations." Those are desks with two monitors and two keyboards, but the keyboards both control the same monitor. That makes it impossible for students to accidentally start working on their own computer. Assuming pairing stations aren't in the budget, then you can approximate them by shutting every other monitor off.
  • On the first day that you introduce pair programming, talk about what it is and why we do it. You can use this slideset to do so: 
  • Either pre-select the pairs or ask students to form pairs. It might be better to pre-select, so you don't end up with a pair of two students that are at too low of a level together. Get the pairs to sit at a station. To make sure they bond and feel like a team, give them 10 minutes to come up with a team name and team chant. Have each team introduce themselves to the rest of the classroom.
  • Begin pairing! Start a timer so that you can yell "Switch!" after some amount of minutes, to make sure the pairs actually alternate.
  • Either continue with the same pairs for the rest of the class or switch them for every project. Some pairs work better than others, so pay attention to whether there are problem pairs that need changing up.
Here are additional resources that can help you introduce pair programming:
Have your own ideas? Share them below!
<div class="callout">If you're using our programming curriculum in the classroom, we strongly encourage you to subscribe to our blog for the latest updates, and email us at compsci-feedback at khanacademy.org with your stories and feedback. Tak!</div>