Yury Pukhov, YuSMP Group
Yury Pukhov CEO & Mobile Engineering Lead, YuSMP Group
Add YuSMP as a preferred source on Google
TL;DR: XP software development (Extreme Programming) is an agile method that pushes proven engineering habits to the limit: test-first coding, pair programming, continuous integration, refactoring, small releases and a customer who works with the team. It rests on five values and twelve practices, runs in one- to two-week cycles, and suits products with changing requirements.

XP software development, better known as Extreme Programming, is an agile method built around one idea: if a practice helps, do it all the time. Code reviews are useful, so programmers review continuously by pairing. Testing is useful, so tests are written before the code. Integration is useful, so the team integrates many times a day. That is why XP is often called the most engineering-heavy of the agile methods. Scrum tells a team how to organise its work. XP tells it how to write the code.

Those habits matter most when requirements keep moving and the cost of a broken release is high, which is why a product engineering team that practises test-first development and continuous integration usually ships fewer regressions than one that tests at the end. XP is one of several software development methodologies, and it is rarely adopted in full. Most teams in 2026 run Scrum or Kanban for planning and borrow XP practices for the engineering layer.

This guide explains where XP came from, the five values and twelve practices, how an XP project runs week to week, the roles involved, how XP compares with Scrum and Kanban, when it fits and when it does not, and how AI coding assistants are changing the method. It ends with a step-by-step adoption plan and a checklist for judging whether a development partner really works this way.

What is XP software development?

XP software development is an agile approach in which a small team delivers working software in short cycles while following a strict set of engineering practices: test-first programming, pair programming, continuous integration, refactoring, simple design and frequent small releases. The customer sits with the team, writes requirements as short user stories and checks every iteration.

The word "extreme" describes the dial, not the risk. Kent Beck, who created the method, described it as taking good practices and turning them up to the maximum. If short feedback loops reduce mistakes, make the loops as short as possible: seconds for a unit test, minutes for a build, days for a customer review, weeks for a release. If simple code is easier to change, never write anything the current story does not need. That principle is usually summarised as YAGNI, "you aren't gonna need it".

XP is not a project management framework in the way Scrum is. It says little about portfolio planning, budgeting or how to coordinate dozens of teams. What it offers is a tested answer to a narrower question: how should a group of programmers work every day so that the code stays correct, simple and cheap to change even when the requirements do not stand still?

Who created extreme programming?

Kent Beck created extreme programming while leading the Chrysler Comprehensive Compensation System (C3) project in the mid-1990s, and Ron Jeffries joined him as coach. Beck took over the troubled payroll project in 1996 and rebuilt the team's way of working around short iterations, automated tests and pairing. Ward Cunningham, Beck's long-time collaborator, helped shape many of the underlying ideas.

Beck published the method in Extreme Programming Explained: Embrace Change in 1999. A second edition in 2004 reworked the practices, added respect as a fifth value and softened some of the original rules, for example replacing the strict "40-hour week" with "energized work". When seventeen practitioners wrote the Agile Manifesto in 2001, Beck, Jeffries and Cunningham were among the signatories, so XP is one of the methods the manifesto grew out of rather than something built on top of it.

How does extreme programming fit into agile software development?

Extreme programming is one of the original agile methods: it predates the 2001 Agile Manifesto, and its creator signed it. In agile software development, extreme programming is the branch that prescribes engineering practices, while frameworks such as Scrum prescribe roles, events and planning rules. The two answer different questions and fit together well.

All agile methods share the same core: deliver working software often, welcome changing requirements, keep the customer close and improve the process based on evidence. Scrum turns that into sprints, a product owner, a Scrum Master and a set of ceremonies. Kanban turns it into a visual board and limits on work in progress. XP turns it into concrete coding behaviour: write the test first, pair on the change, integrate today, refactor before the code rots.

That is why "XP or agile" is a false choice. XP is agile. The real choice is how much of XP's engineering discipline a team adopts on top of the planning framework it already uses. Our agile software development guide covers the wider family of methods, and the comparison table later in this article shows how XP differs from Scrum and Kanban point by point.

The 5 values of extreme programming

Extreme programming rests on five values: communication, simplicity, feedback, courage and respect. The practices exist to put these values into daily behaviour, and when a team faces a situation no practice covers, the values are the tie-breaker.

Communication

Communication in XP means that knowledge moves through conversation, not documents. The team sits together, pairs on code, plans with the customer in the room and keeps progress visible on the wall. Most project failures trace back to someone not knowing something that someone else knew, and XP tries to make that gap as small as possible.

Simplicity

Simplicity in XP means building the simplest thing that could possibly work for today's requirement and nothing more. Extra abstraction layers, speculative configuration and "we might need it later" features all cost time now and slow down every future change. If the need appears later, the team adds it then, with tests to make the change safe.

Feedback

Feedback in XP comes from three sources at different speeds: the code (unit tests run in seconds), the customer (acceptance tests and demos every iteration) and the team (estimates compared with actual progress). Short loops mean mistakes are found while they are still cheap to fix.

Courage

Courage in XP is, in Beck's words, effective action in the face of fear. It means telling the customer an estimate they do not want to hear, deleting code that no longer earns its place, refactoring a fragile module instead of working around it, and stopping to fix a broken build before adding anything new.

Respect

Respect was added as the fifth value in the 2004 second edition. Team members respect each other's expertise, the customer's right to set priorities and the programmers' right to own estimates and technical decisions. Without respect, pairing becomes supervision and collective ownership becomes blame.

XP principles that guide everyday decisions

XP principles sit between the abstract values and the concrete practices: they turn values into rules of thumb a team can apply when deciding how to handle a specific situation. The most useful ones for day-to-day work are:

  • Rapid feedback: shorten the time between an action and learning whether it worked, from a test run to a customer demo.
  • Assume simplicity: treat each problem as if it can be solved simply, and add complexity only when evidence demands it.
  • Incremental change and baby steps: make many small changes rather than a few large ones, so each step is easy to verify and easy to undo.
  • Embrace change: design the process and the code so that a new requirement is routine work, not a crisis.
  • Quality work: keep quality fixed and let scope flex; shipping known defects to hit a date only moves the cost to later.
  • Humanity and mutual benefit: practices should serve the people doing the work today and the people who will maintain the code tomorrow.
  • Reflection and flow: regularly ask what is working, and aim for a steady flow of deployable value instead of big-bang releases.

What are the 12 practices of extreme programming?

The 12 practices of extreme programming are the planning game, small releases, system metaphor, simple design, testing (test-first development), refactoring, pair programming, collective code ownership, continuous integration, sustainable pace (the 40-hour week), on-site customer and coding standards. They are usually grouped into four areas: fine-scale feedback, continuous process, shared understanding and programmer welfare.

The practices reinforce each other. Refactoring is only safe with a full test suite. Collective ownership only works with coding standards and continuous integration. Small releases only work with a customer available to accept them. Teams that cherry-pick one practice in isolation often see less benefit than they expected for exactly this reason.

Fine-scale feedback

PracticeWhat the team doesWhy it matters
Pair programmingTwo programmers write all production code together at one workstationContinuous code review, fewer defects, knowledge spread across the team
Planning gameCustomer picks and orders user stories; programmers estimate them and commit to what fitsBusiness decides value, engineers decide cost, nobody overrides the other
Test-driven developmentWrite a failing test, write the minimum code to pass, then clean upEvery behaviour is covered by an automated test from the start
Whole team / on-site customerA real customer representative works with the team and answers questions on the spotQuestions get answers in minutes instead of days

Test-first development is the practice most teams adopt from XP even when they adopt nothing else. Our guide to TDD in software development walks through the red-green-refactor cycle in detail.

Continuous process

PracticeWhat the team doesWhy it matters
Continuous integrationMerge and build the whole system several times a day, running all tests each timeIntegration problems surface within hours, not at the end of a phase
Refactoring (design improvement)Improve the structure of working code in small steps without changing behaviourKeeps technical debt low so the code stays cheap to change
Small releasesPut working software in front of users as often as possible, typically every one to few iterationsReal feedback early; less risk in each release

Continuous integration in XP is a team habit before it is a tool. A modern pipeline automates the checks, and our article on CI/CD in software development covers how to set one up.

Shared understanding

PracticeWhat the team doesWhy it matters
Coding standardsEveryone follows one agreed style, enforced by formatters and lintersAny pair can work on any file without friction
Collective code ownershipAnyone may change any part of the codebaseNo bottleneck on a single expert; lower bus factor
Simple designCode passes the tests, reveals intent, has no duplication and has the fewest elements possibleLess code to read, test and maintain
System metaphorA shared story or vocabulary that describes how the system worksConsistent naming and a common mental model across business and engineering

Programmer welfare

PracticeWhat the team doesWhy it matters
Sustainable pace (40-hour week)No routine overtime; a second week of overtime is treated as a sign the plan is wrongTired programmers write more bugs; the pace must hold for years, not weeks

Original 12 vs second-edition practices (2004)

The second edition of Extreme Programming Explained replaced the original twelve practices with a reorganised set of primary practices that keep the core ideas but describe them more broadly. According to the Agile Alliance glossary, the 2004 list includes sit together, whole team, informative workspace, energized work, pair programming, stories, weekly cycle, quarterly cycle, slack, ten-minute build, continuous integration, test-first programming and incremental design.

Original practice (1999)Closest second-edition practice (2004)What changed
On-site customerWhole team, sit togetherThe customer is one part of a cross-functional team sharing a space
Planning gameStories, weekly cycle, quarterly cyclePlanning is split into a weekly rhythm and a quarterly view
40-hour weekEnergized workFocus on working only as long as you can stay productive
TestingTest-first programmingWriting tests before code is made explicit
Simple designIncremental designDesign improves a little every day instead of up front
Continuous integrationContinuous integration, ten-minute buildA concrete target: the full build and tests finish in about ten minutes
(not present)Slack, informative workspacePlanned buffer for overruns, and visible progress on the walls

Most articles still list the original twelve because they are easier to teach. In practice, the second-edition additions are often the most valuable for teams in 2026: the ten-minute build gives a measurable target for the CI pipeline, and slack gives the team room to refactor without asking permission.

Pair programming styles: driver/navigator, ping-pong and strong-style

Pair programming in XP comes in three common styles, and switching between them keeps pairing productive instead of exhausting. In an article on Martin Fowler's site, Birgitta Böckeler and Nina Siessegger describe them as follows:

  • Driver and navigator: one person types and focuses on the immediate code; the other reviews, thinks about the bigger picture and spots problems. Roles swap regularly.
  • Ping-pong: built for TDD. Person A writes a failing test, person B makes it pass and writes the next failing test, then A makes that pass, and so on.
  • Strong-style: "for an idea to go from your head into the computer it must go through someone else's hands." The experienced person navigates and the less experienced person drives, which makes it a strong method for onboarding.

Pairing costs more effort per line of code, and early academic research put numbers on the trade-off. In a classic 2000 study, Alistair Cockburn and Laurie Williams found that pairs spent about 15% more person-hours than solo programmers but produced about 15% fewer defects. Whether that trade pays off depends on how expensive defects are in your product, which is why many teams pair on risky or unfamiliar code and work solo on routine changes. Mob or ensemble programming, where the whole team works on one problem at one screen, is an extension of the same idea.

The 5 rules of XP: planning, managing, designing, coding, testing

The rules of XP translate the practices into five areas of daily work, each with its own short checklist. They are a practical way to audit whether a team is really doing XP or only using the name.

  1. Planning: requirements are written as user stories; release planning sets the schedule; work is delivered in small, frequent releases; the project is divided into iterations; each iteration starts with an iteration planning session.
  2. Managing: the team works in an open shared space; it sets a sustainable pace; a short stand-up starts each day; velocity is measured; people move between parts of the code; the process is fixed when it breaks.
  3. Designing: choose the simplest design that works; agree a system metaphor; use spike solutions to reduce risk; add no functionality early; refactor whenever and wherever possible.
  4. Coding: the customer is always available; code follows agreed standards; the unit test is written first; all production code is pair programmed; only one pair integrates at a time; integrate often; ownership is collective.
  5. Testing: all code has unit tests; all unit tests pass before release; when a bug is found, a test is written for it first; acceptance tests are run often and their results are published.

How does an XP project work? The lifecycle step by step

An XP project works as a repeating loop of short iterations, usually one to two weeks long, inside a longer release cycle. Each iteration takes a small set of user stories from idea to tested, working code, and each release puts a batch of those stories in front of real users.

Team arranging user story cards during XP iteration planning
  1. Exploration. The customer and team describe the product at a high level. Programmers experiment with the technology and run spikes, short throwaway experiments, to estimate anything that is uncertain.
  2. User stories. The customer writes requirements as short stories, each small enough to finish within one iteration and each with acceptance criteria that can be tested.
  3. Release planning. Programmers estimate the stories, the customer orders them by business value, and together they agree which stories go into the next release.
  4. Iteration planning. At the start of each iteration, the team picks stories that fit its measured capacity and breaks them into tasks.
  5. Test-first coding in pairs. Pairs take tasks, write a failing test, write the code to pass it and refactor, repeating many times a day.
  6. Continuous integration. Each pair integrates its work into the main branch frequently; the full build and all tests run every time.
  7. Acceptance testing. The customer checks each story against its acceptance tests, ideally automated, and accepts or returns it.
  8. Small release. When a set of accepted stories adds real value, it goes to production.
  9. Feedback and adjustment. The team compares planned and completed work, updates its velocity and adjusts the next plan; the customer reorders the backlog based on what users did.

Velocity, the amount of estimated work a team completes per iteration, is the main planning signal in XP. It is used to forecast, not to judge people, and it only becomes reliable after several iterations. Our guide to velocity in software development explains how to measure and use it without gaming it.

XP roles and responsibilities

XP defines a small set of roles focused on who decides what: the customer decides value and priority, the programmers decide estimates and technical approach, and supporting roles keep the process honest. In a small team one person may hold several roles.

  • Customer: writes user stories, sets priorities, answers questions during the iteration and defines acceptance tests. In product companies this is usually a product owner or product manager.
  • Programmer: estimates stories, writes tests and code in pairs, refactors and integrates. In XP, programmers own the estimates; nobody else may change them.
  • Coach: an experienced practitioner who teaches the practices, spots when the team drifts and helps it fix its own process. Ron Jeffries played this role on C3.
  • Tracker: measures progress against the plan, tracks velocity and raises an early warning when the iteration is off course.
  • Tester: helps the customer turn stories into automated acceptance tests and keeps the test suite trustworthy.
  • Manager or sponsor: removes obstacles, secures resources and protects the team's sustainable pace.

XP vs Scrum vs Kanban: what's the difference?

XP, Scrum and Kanban are all agile, but they control different things: XP controls how code is written, Scrum controls how work is planned in fixed sprints, and Kanban controls how work flows through a board with limits on work in progress. Many teams combine them, for example Scrum planning with XP engineering practices.

AspectXPScrumKanban
Main focusEngineering practices and code qualityPlanning, roles and team cadenceFlow of work and bottlenecks
Iteration lengthOne to two weeksFixed sprint, up to one month (two weeks is common)No iterations; continuous flow
Prescribed engineering practicesYes: TDD, pairing, CI, refactoring, simple designNone; the team choosesNone; the team chooses
RolesCustomer, programmer, coach, tracker, testerProduct Owner, Scrum Master, DevelopersNone required
Scope changes mid-iterationAllowed: an unstarted story can be swapped for one of equal sizeDiscouraged once the sprint startsAllowed at any time
WIP limitsImplicit through iteration capacityImplicit through sprint scopeExplicit per column
Best fitSmall teams building products with changing requirements and high quality demandsCross-functional product teams that need a predictable cadenceSupport, operations and interrupt-driven work

For a deeper look at each framework, see our guides to Scrum software development and Kanban software development. XP also shares many ideas with lean software development, especially eliminating waste and building quality in, but Lean works at the level of principles while XP works at the level of daily coding habits.

When should you use extreme programming (and when not)?

Use extreme programming when requirements change often, the team is small enough to collaborate closely and the customer is available to answer questions quickly. Avoid adopting it in full when the scope is fixed by contract, the team is large and spread across time zones without overlap, or the code cannot be put under automated tests.

XP is a good fit when:

  • requirements are uncertain or change from one iteration to the next;
  • the team is small (roughly up to a dozen programmers) and co-located or working in overlapping hours;
  • a customer or product owner can spend real time with the team every week;
  • automated unit and acceptance tests are technically possible;
  • the project uses new technology where early feedback reduces risk;
  • defects are expensive, for example in payments, health data or safety-relevant logic.

XP is a poor fit, or needs adaptation, when:

  • the contract fixes scope, price and date up front with little room to change;
  • the team is large and distributed with no shared working hours;
  • you are working on legacy code with no tests and no budget to add them first;
  • stakeholders are unavailable and decisions take weeks;
  • regulation requires heavy formal documentation that XP's "conversation over documents" style does not produce on its own;
  • the organisation measures individual output, which conflicts with pairing and collective ownership.

Benefits and challenges of XP

XP's main benefit is software that stays correct and easy to change because quality is built in every day; its main challenge is that the practices demand discipline, an available customer and a willingness to pay for pairing up front.

Benefits

  • Higher code quality: test-first development and continuous review through pairing catch defects as they are written.
  • Fast feedback: short iterations and small releases mean the team learns quickly whether it is building the right thing.
  • Lower cost of change: a full test suite and constant refactoring keep technical debt from building up.
  • Shared knowledge: rotating pairs and collective ownership spread understanding of the codebase and lower the bus factor.
  • Predictable planning: velocity based on real completed work gives the customer honest forecasts.
  • Sustainable teams: no routine overtime means fewer burned-out engineers and less churn.

Challenges

  • Pairing cost and fatigue: pairing uses more person-hours per task and is tiring if done all day without breaks.
  • Customer availability: many businesses cannot spare a decision-maker for the team every week.
  • Discipline: the practices depend on each other, and skipping tests "just this once" quickly erodes the benefits.
  • Scaling: XP was designed for one small team; coordinating many XP teams needs additional structure.
  • Documentation and compliance: regulated projects need audit trails and formal records that the team must produce deliberately.
  • Cultural fit: developers used to working alone may resist pairing and shared ownership at first.

Does XP still matter in 2026? Extreme programming with AI coding assistants

XP matters more in 2026, not less, because AI coding assistants generate code faster than teams can review it, and XP's tests, continuous integration and small releases are the guardrails that keep that speed from turning into defects. AI amplifies whatever engineering discipline a team already has, good or bad.

The data on adoption is clear. Google's DORA State of AI-assisted Software Development 2025 report, based on a survey of about 5,000 technology professionals, found that 90% of respondents use AI at work, up 14 points from the previous year, and 65% rely on it heavily. The median respondent spends about two hours a day working with AI, and more than 80% say it has increased their productivity. At the same time, 30% report little or no trust in AI-generated code. DORA's central conclusion is that AI acts as an amplifier: strong engineering practices get stronger, and weak ones get exposed faster.

Developer reviewing and refactoring code with test-first discipline

That trust gap is exactly what XP practices close. Here is how each core practice changes when an AI assistant joins the team:

  • Test-first becomes the specification. A human-written failing test defines what the AI-generated code must do. If the test passes and the code is simple, the suggestion is accepted; if not, it is rejected without debate.
  • Continuous integration becomes the safety net. More code per day means more chances to break something, so a fast, complete build is more valuable than ever. The ten-minute build target matters more, not less.
  • Small releases limit the blast radius. Shipping small increments keeps any defect introduced by generated code easy to find and roll back.
  • Refactoring keeps generated code from piling up. AI tools tend to produce working but verbose code; XP's habit of continuous cleanup stops it from hardening into technical debt.
  • Human pairing shifts toward review and knowledge transfer. When an assistant writes the first draft, the human pair focuses on design, edge cases and teaching. Strong-style pairing, with the senior person navigating, is a natural fit.

One more signal from the industry: Digital.ai's 18th State of Agile report, published in October 2025, did not ask about team-level frameworks at all for the first time and shifted its focus to AI. Framework labels matter less than the engineering habits underneath them, and those habits are largely the ones XP described in 1999.

How to adopt XP practices step by step (including outsourced and distributed teams)

The safest way to adopt XP is incrementally: start with the practices that give fast, visible results (automated tests and continuous integration), then add test-first development, pairing and a weekly planning rhythm once the foundation holds. The same order works for in-house, outsourced and distributed teams.

  1. Start with continuous integration and automated tests. Get every change building and tested automatically on the main branch. Aim for the ten-minute build. Without this, no other XP practice is safe.
  2. Introduce TDD on new code. Do not try to retrofit tests across a legacy codebase in one go. Write tests first for every new feature and every bug fix, and the coverage grows where change actually happens. Our guide to unit testing covers the basics.
  3. Pair on risky work first. Start pairing on complex, unfamiliar or business-critical changes rather than everything. For distributed teams, use a shared editor or screen-sharing tool and agree on a daily overlap window of at least a few hours for pairing sessions.
  4. Adopt a weekly cycle and the planning game. Plan each week with the customer: they choose and order stories, the programmers estimate and commit. With remote customers, a short video planning session plus asynchronous story comments works well.
  5. Budget slack for refactoring. Reserve part of each iteration for cleanup and small improvements, so refactoring never needs a separate business case.
  6. Run retrospectives every iteration. Ask what slowed the team down and change one thing at a time.
  7. Measure outcomes, not activity. Track deployment frequency, lead time for changes, change failure rate and time to restore service (the DORA delivery metrics), plus the defect escape rate. Avoid measuring lines of code or individual output.

Checklist: how to tell whether a development partner really practises XP

A development partner really practises XP if you can see the evidence in its repository and calendar, not just in its sales deck. Ask for these during selection or the first weeks of a project:

  • Tests in every pull request: new behaviour arrives with new tests, and bug fixes arrive with a test that reproduces the bug.
  • A fast CI pipeline: the full build and test suite finishes in about ten minutes and blocks merges on failure.
  • Evidence of pairing: co-authored commits, pairing rotation in the schedule, or recorded pairing sessions on complex work.
  • A regular demo cadence: you see working software every one to two weeks, not slides.
  • Refactoring in the plan: cleanup work appears in the backlog or iteration budget instead of being hidden.
  • Small, frequent releases: the release history shows many small deployments rather than a few big ones.
  • Honest estimates: the team tracks velocity and tells you early when a release is at risk.

The same questions are useful for any vendor evaluation; our guide on how to choose a software development company covers the rest of the selection process.

Frequently asked questions

What is XP software development?

XP software development, or Extreme Programming, is an agile method created by Kent Beck in the 1990s. A small team delivers working software in one- to two-week iterations while following strict engineering practices: test-first development, pair programming, continuous integration, refactoring, simple design and small releases. A customer representative works with the team, writes user stories and checks the results every iteration.

Is extreme programming part of agile software development?

Yes. Extreme programming is one of the original agile methods. It was created before the Agile Manifesto of 2001, and Kent Beck, Ron Jeffries and Ward Cunningham were among the manifesto's signatories. Within agile software development, extreme programming is the method that prescribes concrete engineering practices, which is why many teams combine it with Scrum or Kanban for planning.

What are the 12 practices of extreme programming?

The 12 original practices are the planning game, small releases, system metaphor, simple design, testing (test-first development), refactoring, pair programming, collective code ownership, continuous integration, sustainable pace (the 40-hour week), on-site customer and coding standards. The 2004 second edition reorganised them into practices such as whole team, weekly cycle, slack and the ten-minute build.

What is the difference between XP and Scrum?

Scrum is a framework for planning and organising work in fixed sprints with defined roles and events, but it does not prescribe how code is written. XP prescribes engineering practices such as test-first development, pair programming and continuous integration, uses shorter iterations and allows unstarted work to be swapped mid-iteration. Many teams use Scrum for planning and XP practices for engineering.

Is pair programming required in XP?

In the original rules, all production code in XP is written in pairs. In practice, most teams in 2026 pair selectively: on complex, risky or unfamiliar code, and during onboarding, while routine changes are done solo with code review. Early research found pairs used about 15% more person-hours but produced about 15% fewer defects, so pairing pays off most where defects are expensive.

Can extreme programming work with remote or outsourced teams?

Yes, with adjustments. Remote teams pair through shared editors and screen sharing, agree on a daily overlap window for pairing and planning, and replace the on-site customer with a product owner available on video and chat. CI, test-first development and small releases work the same way regardless of location. Large time-zone gaps with no overlap are the main obstacle.

Is XP still relevant with AI coding assistants in 2026?

Yes. Google's DORA 2025 report found that 90% of developers use AI, yet 30% have little or no trust in AI-generated code. XP practices close that gap: tests written first define what generated code must do, continuous integration catches breakages, small releases limit risk and refactoring keeps generated code clean. AI amplifies the discipline XP provides.

Sources

Published 24 November 2026. Figures are taken from the cited sources; how much of XP pays off for your team depends on its size, product and release risk.