# Pair programming

Concept · [Technical basics](https://ecosystem.samcarlton.com/technical)

Also called: pairing, pair program, mob programming

Two people [writing code](https://ecosystem.samcarlton.com/code) together at one screen, one typing and one reviewing and thinking ahead, switching roles often.

**For example:** A senior [developer](https://ecosystem.samcarlton.com/software-engineer) and a new hire pair program for a week so the new hire learns the [codebase](https://ecosystem.samcarlton.com/code).

## Connects to (4)

- [Software engineer](https://ecosystem.samcarlton.com/software-engineer): A person who designs, writes and maintains code for a living.
- [Code](https://ecosystem.samcarlton.com/code): Exact written instructions that tell a computer what to do, step by step.
- [Red-green-refactor](https://ecosystem.samcarlton.com/red-green-refactor): A way of writing code in three steps: write a test that fails (red), write just enough code to make it pass (green), then clean up the…
- [Coding agent](https://ecosystem.samcarlton.com/coding-agent): An AI agent that writes and changes code.

Map view: https://ecosystem.samcarlton.com/pair-programming
