# Pair programming

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

* [Template Exercise](/teacher-curriculum/exercises/pair-programming.md#template-exercise)
  * [Learning objectives](/teacher-curriculum/exercises/pair-programming.md#learning-objectives)
  * [Exercises](/teacher-curriculum/exercises/pair-programming.md#exercises)
  * [Learning Paths](/teacher-curriculum/exercises/pair-programming.md#learning-paths)

## Learning objectives

* Learn and describe what pair programming is
* Be able to plan and execute a pair programming session

## Exercises

* In what situations do you think pair programming works well?
* When would you not use pair programming?
* Write a plan for a pair programming session
  * What problem should the students work on
  * How do you set up the students
  * How will you physically run the session?

## 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/exercises/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.
