# 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)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://hyfbe.gitbook.io/teacher-curriculum/topics/pair-programming.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
