# Extreme Programming (XP)

> An agile method made of strict coding habits. Pair up, test first, and ship small and often.

**Field:** Business & Startups  
**Category:** Agile Delivery  
**Also known as:** XP, eXtreme Programming

## Think of it like

It is like two cooks at one stove, tasting every spoon. Small checks all day stop a bad meal.

## Definition

Extreme Programming is an agile method for building software of very high quality. Kent Beck shaped it in the late 1990s. It takes good coding habits and turns them all the way up. Programmers work in pairs, write tests before code and merge their work many times a day. They release small changes often and keep the design simple. It names five values, such as feedback, courage and respect.

## Example

A team in Boston adopts XP. Every line is written by two people at one screen, and no code is merged until its tests pass.

## Why it matters

Scrum says how to organize the work, but not how to write good code. XP fills that gap, and many Scrum teams borrow its habits.

## Common mistake

Taking one habit, like pair programming, and calling it XP. The habits hold each other up, and the payoff comes from all of them together.

## Three principles

- **Test first.** Write the test, then the code.
- **Pair up.** Two people, one screen.
- **Small releases.** Ship little changes often.

## Related terms

- [Pair Programming](https://learn.benibix.com/term/development/pair-programming)
- [Test-Driven Development (TDD)](https://learn.benibix.com/term/development/test-driven-development)
- [Continuous Integration (CI)](https://learn.benibix.com/term/development/continuous-integration)
- [Refactoring](https://learn.benibix.com/term/development/refactoring)
- [Agile](https://learn.benibix.com/term/business/agile)
- [User Story](https://learn.benibix.com/term/business/user-story)

## Taught in

- [XP, Lean and Scrumban](https://learn.benibix.com/learn/business-agile/xp-lean-and-scrumban): Agile and Scrum, 18/19

![Three loops nested inside each other, each marked with how often it turns. The inner loop, in the accent colour, is seconds to minutes: pair programming and test-first coding. The middle loop is hours: merging everyone's code and refactoring. The outer loop is weeks: planning with the customer and small releases.](https://learn.benibix.com/diagrams/agile-xp-practices.svg)

---

Source: https://learn.benibix.com/term/business/extreme-programming
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-16
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
