> For the complete documentation index, see [llms.txt](https://hyfbe.gitbook.io/teacher-curriculum/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hyfbe.gitbook.io/teacher-curriculum/topics/pair-programming.md).

# Pair programming

Peer programming is about two students working together to solve some programming problem.

When doing peer programming in the class its important to enforce the structures around it. With the driver and navigator roles set up and times for switching around the roles.

It is really good for collaborative learning where the students explain topics to each other

## Preparation

* Read about the benefits of pair programming [here](https://meetedison.com/pair-programming-in-education/)
* What [this video](https://youtu.be/TWj78n4ZuMY) about some tips for pair porgramming

## Tips

* Dont just say they should work in pairs. Be proactive with it. Assign the driver and the navigator and set a timer for when they should change the driver.&#x20;
* Assign a computer for them
* Pair similar skills
* Only speak with the pair

## Exercises

[Exercise](/teacher-curriculum/exercises/pair-programming.md)

## Learning Paths

* [Teaching the class](/teacher-curriculum/learning-paths/teaching-the-class.md)
