Extreme Programming (XP)
Extreme Programming, created by Kent Beck, is an agile software
development methodology defined by a specific set of engineering
practices — unlike [[scrum]], which mostly defines roles, artifacts,
and events without prescribing how the code itself gets written, XP
prescribes the technical discipline directly: pair programming,
test-driven development, continuous integration, and frequent, small
releases, aimed at improving software quality and responsiveness to
changing requirements.
The five values
- Communication — most project problems trace back to something not
communicated; XP's practices (pairing, on-site customer, collective
ownership) are largely designed to force communication that a
document-based process would let slide.
- Simplicity — build the simplest thing that could possibly work for
today's known requirements, rather than speculatively designing for
requirements that may never arrive.
- Feedback — get real feedback as fast as possible, at every level:
a unit test gives feedback in seconds, pair programming gives feedback
continuously, a short release cycle gives feedback from real users
within weeks rather than months.
- Courage — the willingness to make a needed change (refactor
working code, throw away a bad design, tell the customer an estimate
is wrong) even when it's uncomfortable, because the other four values
give enough safety net to act on it.
- Respect — every team member's contribution is valued; practices
like collective code ownership and sustainable pace only work in a
team that genuinely respects each other's work and limits.
Core practices
- Pair programming — two developers work at one workstation, one
writing while the other reviews in real time and thinks ahead; catches
defects immediately rather than at a later review stage, and spreads
knowledge across the team as pairs rotate.
- Test-driven development (TDD) — write a failing test, write the
minimum code to pass it, then refactor; keeps the codebase continuously
covered by tests that were written before the implementation they
verify, rather than added afterward (or not at all).
- Continuous integration — integrate and test code changes multiple
times a day rather than in large, infrequent merges, so integration
conflicts surface small and early instead of large and late.
- Refactoring — continuously improve the code's internal structure
without changing its external behavior, keeping the design suited to
today's actual requirements rather than accumulating the debt of
"simplest thing that worked at the time" left unrevisited.
- Collective code ownership — any pair can improve any part of the
codebase at any time, rather than code being siloed to whoever
originally wrote it — this requires the shared coding standards and
test coverage the other practices provide to be safe.
- Small releases — release working, valuable software in small
increments, keeping the feedback loop with real users short.
- Sustainable pace — work at a pace the team can sustain
indefinitely (historically stated as "no more than 40-hour weeks");
chronic overtime degrades the judgment and code quality the other
practices depend on.
- On-site customer — a real customer or customer representative is
available to the team continuously, answering questions and clarifying
priority in real time rather than through a specification document.
XP vs. Scrum
XP and [[scrum]] address different layers and are commonly used
together: Scrum defines the team's roles, planning cadence, and
ceremonies (what to build, in what order, on what rhythm); XP defines
the engineering practices for how the code itself gets built well
within that cadence. A team can run Scrum's sprints without any of XP's
technical practices (and often ships lower-quality code as a result), or
run XP's practices without Scrum's specific role/ceremony structure.
Common pitfalls
- Adopting pair programming or TDD as a checkbox without the
supporting values — the practices depend on genuine communication and
courage to work; performing them mechanically (pairing in silence,
writing tests after the code purely to hit a coverage number) loses
most of their actual value.
- Skipping refactoring because "it isn't a feature" — without
ongoing refactoring, "simplest thing that could work" accumulates into
a design that no longer fits the system's actual requirements,
eventually slowing delivery of genuine features.
- Chronic overtime treated as normal — undermines sustainable pace
and, empirically, the judgment quality the other practices depend on.
- No real on-site/available customer — without fast access to real
priority and requirements answers, the team either stalls on decisions
or guesses, undermining the fast-feedback premise the other practices
are built around.
Learn more
- [[scrum]] for the complementary process/role framework XP's engineering practices are commonly run inside.
- [[agile-principles]] for the underlying values XP's specific practices operationalize.
- [[kanban]] for a contrasting, flow-based process model XP's practices can also pair with.
1---2name: extreme-programming3description: Use when asked to apply Extreme Programming (XP) — pair programming, test-driven development, continuous integration, refactoring, and sustainable pace as the specific engineering practices behind agile delivery — as distinct from scrum's process/role framework, which XP's practices are commonly run inside rather than as a competing alternative.4metadata:5 source: https://skillmd.com/skills/skills-on-ai/extreme-programming6---78# Extreme Programming (XP)910Extreme Programming, created by Kent Beck, is an agile software11development methodology defined by a specific set of *engineering*12practices — unlike [[scrum]], which mostly defines roles, artifacts,13and events without prescribing how the code itself gets written, XP14prescribes the technical discipline directly: pair programming,15test-driven development, continuous integration, and frequent, small16releases, aimed at improving software quality and responsiveness to17changing requirements.1819## The five values2021- **Communication** — most project problems trace back to something not22 communicated; XP's practices (pairing, on-site customer, collective23 ownership) are largely designed to force communication that a24 document-based process would let slide.25- **Simplicity** — build the simplest thing that could possibly work for26 today's known requirements, rather than speculatively designing for27 requirements that may never arrive.28- **Feedback** — get real feedback as fast as possible, at every level:29 a unit test gives feedback in seconds, pair programming gives feedback30 continuously, a short release cycle gives feedback from real users31 within weeks rather than months.32- **Courage** — the willingness to make a needed change (refactor33 working code, throw away a bad design, tell the customer an estimate34 is wrong) even when it's uncomfortable, because the other four values35 give enough safety net to act on it.36- **Respect** — every team member's contribution is valued; practices37 like collective code ownership and sustainable pace only work in a38 team that genuinely respects each other's work and limits.3940## Core practices4142- **Pair programming** — two developers work at one workstation, one43 writing while the other reviews in real time and thinks ahead; catches44 defects immediately rather than at a later review stage, and spreads45 knowledge across the team as pairs rotate.46- **Test-driven development (TDD)** — write a failing test, write the47 minimum code to pass it, then refactor; keeps the codebase continuously48 covered by tests that were written *before* the implementation they49 verify, rather than added afterward (or not at all).50- **Continuous integration** — integrate and test code changes multiple51 times a day rather than in large, infrequent merges, so integration52 conflicts surface small and early instead of large and late.53- **Refactoring** — continuously improve the code's internal structure54 without changing its external behavior, keeping the design suited to55 today's actual requirements rather than accumulating the debt of56 "simplest thing that worked at the time" left unrevisited.57- **Collective code ownership** — any pair can improve any part of the58 codebase at any time, rather than code being siloed to whoever59 originally wrote it — this requires the shared coding standards and60 test coverage the other practices provide to be safe.61- **Small releases** — release working, valuable software in small62 increments, keeping the feedback loop with real users short.63- **Sustainable pace** — work at a pace the team can sustain64 indefinitely (historically stated as "no more than 40-hour weeks");65 chronic overtime degrades the judgment and code quality the other66 practices depend on.67- **On-site customer** — a real customer or customer representative is68 available to the team continuously, answering questions and clarifying69 priority in real time rather than through a specification document.7071## XP vs. Scrum7273XP and [[scrum]] address different layers and are commonly used74together: Scrum defines the team's roles, planning cadence, and75ceremonies (what to build, in what order, on what rhythm); XP defines76the engineering practices for *how* the code itself gets built well77within that cadence. A team can run Scrum's sprints without any of XP's78technical practices (and often ships lower-quality code as a result), or79run XP's practices without Scrum's specific role/ceremony structure.8081## Common pitfalls8283- **Adopting pair programming or TDD as a checkbox without the84 supporting values** — the practices depend on genuine communication and85 courage to work; performing them mechanically (pairing in silence,86 writing tests after the code purely to hit a coverage number) loses87 most of their actual value.88- **Skipping refactoring because "it isn't a feature"** — without89 ongoing refactoring, "simplest thing that could work" accumulates into90 a design that no longer fits the system's actual requirements,91 eventually slowing delivery of genuine features.92- **Chronic overtime treated as normal** — undermines sustainable pace93 and, empirically, the judgment quality the other practices depend on.94- **No real on-site/available customer** — without fast access to real95 priority and requirements answers, the team either stalls on decisions96 or guesses, undermining the fast-feedback premise the other practices97 are built around.9899## Learn more100101- [[scrum]] for the complementary process/role framework XP's engineering practices are commonly run inside.102- [[agile-principles]] for the underlying values XP's specific practices operationalize.103- [[kanban]] for a contrasting, flow-based process model XP's practices can also pair with.