Skip to main content
Scrumagic
Learn Scrum

Scrum vs Extreme Programming: process or practices?

By Scrumagic Team Last reviewed 6 min read

In short

Scrum says how a team organises its work and inspects its results, and almost nothing about how software gets built. Extreme Programming is the opposite: a set of engineering practices such as pairing, test-first coding and continuous integration. They were developed at about the same time and fit together well, which is why many teams combine them without noticing which part came from where.

If you ask what Scrum says about unit tests, the honest answer is nothing. The Guide says Developers instil quality by adhering to a Definition of Done, and leaves what that contains to the team. That is not a flaw. It is a boundary. Scrum is a framework for working together, and software craft is somebody else's job. Extreme Programming, usually called XP, is where a lot of that craft was written down.

What XP is

XP grew out of a payroll project at a large car manufacturer in the 1990s, when requirements were changing faster than traditional methods could follow. It took a collection of existing good practices and, as the name suggests, pushed each one to an extreme. If code review is good, review all code all the time, which became pair programming. If testing is good, write the tests first. If integration is good, integrate several times a day.

Its values began as communication, simplicity, feedback and courage, with respect added in a later edition. Its practices cluster into four areas, according to the common summary:

  • Fine-scale feedback: pair programming, the planning game, test-driven development and having the whole team involved.
  • Continuous process: continuous integration, refactoring and small releases.
  • Shared understanding: coding standards, collective code ownership, simple design and a shared metaphor for the system.
  • Programmer welfare: a sustainable pace that avoids overtime.

XP also names a few roles, notably an on-site customer who supplies requirements and steers the work. The SBOK® Guide's overview of agile methods adds that XP's roles include customer, developer, tracker and coach, and says XP's engineering practices are the reason it has been widely adopted.

XP was one of the methods represented when the Agile Manifesto was written in 2001, alongside Scrum.

What Scrum covers that XP does not

Scrum is about structure around the work. It defines a Product Owner who orders a single Product Backlog, a Scrum Master who is accountable for establishing Scrum, and Developers who plan and do the work. It defines events, a commitment to a Sprint Goal, and a way of inspecting an Increment with stakeholders. XP has a planning game and short iterations, but it does not define accountabilities with the same precision, and it says less about how stakeholders inspect the outcome and about managing the product over time.

What XP covers that Scrum does not

The Guide asks the Developers to create a usable, verified Increment every Sprint that meets the Definition of Done. It does not say how. XP does. Test-first development gives rapid evidence that code does what it should. Continuous integration keeps the Increment always in a state that can be shown. Refactoring prevents the code from becoming expensive to change, which would eventually slow every Sprint. Pair programming spreads knowledge. Collective ownership removes the single point of failure.

These practices are what make a Definition of Done sustainable. A team can commit to "all code reviewed, tested and integrated" in Sprint Planning, but without a practice for achieving it daily, it will break the commitment by the last week. See Definition of Done.

A worked example: the same Sprint with and without XP practices

This is an illustrative team. They have a two-week Sprint and a Definition of Done that requires automated tests and a merged build.

Without XP-style practices, developers work alone on branches for a week. Tests are added at the end. On day eight, three branches are merged, two of them conflict, and the build is red for a day. Two items miss the Definition of Done. The Sprint Review shows three of five items, and the Retrospective produces an action to "improve testing".

With them, developers pair on the riskiest item, write a failing test before each change, and integrate at least once a day. The build is rarely red for long. By day eight, four items are done and the fifth is close. The Retrospective discusses whether to extend the pairing to the whole team.

The Scrum events are identical in both cases. The difference is in what the Developers do between them. Scrum creates the demand for a good Increment, and XP supplies a way to build one.

How the two relate in practice

Many teams combine them. Typically Scrum supplies the roles, events and artifacts, and XP supplies the engineering discipline underneath. The Scrum Guide welcomes this: it describes Scrum as a container for other techniques, methodologies and practices, and it states that the Developers decide how to turn Product Backlog items into Increments. Nothing in the Guide prevents pairing or test-first work. Nothing requires them either.

A few places where their ideas touch directly:

  1. Iterations and Sprints. XP uses short iterations and Scrum fixes the length in a similar way.
  2. User stories. XP popularised writing requirements as stories. The Guide does not require them, but they are common in Product Backlogs.
  3. Velocity and estimation. XP's project velocity and Scrum's capacity work have much in common, and both can be misused. See how velocity gets misused.
  4. Sustainable pace. XP lists it as a practice. The Guide credits working in Sprints at a sustainable pace with improving focus and consistency.
  5. Customer involvement. XP's on-site customer maps loosely to a Product Owner. The two differ in authority: the Guide gives the Product Owner full accountability for the backlog's content and order.

Where they pull in different directions

The two are not free of friction. XP's emphasis on an on-site customer can conflict with the Scrum idea that the Product Owner is a single accountable person: if a team takes requirements from several customer representatives, the backlog loses its one voice. XP also encourages changing priorities between iterations, while Scrum protects the Sprint Goal from changes that would endanger it, though it allows scope to be renegotiated. And XP's rule that every line of production code is written in pairs is a stronger statement than anything in the Guide, which leaves the choice to the Developers.

None of these is a reason to avoid combining them. They are reasons to decide, in the working agreement, which rule applies when the two disagree.

Common mistakes

  • Treating XP as a rival. It is not a competing framework in the way Kanban or waterfall are. The two are usually complementary.
  • Blaming Scrum for technical debt. Scrum does not tell anyone to skip tests. A team with no engineering practices will accumulate debt in any process.
  • Adopting practices without reasons. Pair programming on every task is not required. The question is whether the practice serves the Definition of Done.
  • Assuming the Scrum Master teaches engineering. The Guide makes them accountable for Scrum, not for code quality, which belongs to the Developers.

Two perspectives

Neither source prescribes this, so practice varies.

Scrum Guide

The Scrum Guide does not mention Extreme Programming. It makes the Developers accountable for quality through the Definition of Done and for deciding how to turn backlog items into Increments, leaving engineering practices to the team.

SBOK®

The SBOK® Guide lists Extreme Programming among agile methods, noting its values of communication, feedback, simplicity and courage and its engineering practices, and mentions test-driven development separately.

Same thing, different words

  • Developers (Scrum Guide) = Scrum Team (SBOK)
  • Definition of Done (Scrum Guide) = Done Criteria (SBOK)

Neither source requires XP practices. Combining them is a team decision, and many teams treat the pairing as a way of meeting their Definition of Done.

How to practise it

Look at your Definition of Done and ask what practice makes each line achievable every day. If a line has no practice behind it, it is a wish. In the simulator the Definition of Done is a decision you make and hold, so you can see what a weak one costs later in the project.

Sources

  1. Extreme programming, Wikipedia. Read on 14 October 2026.
  2. The 2020 Scrum Guide, Scrum Guides. Read on 14 October 2026.
  3. History behind the Agile Manifesto, Agile Manifesto. Read on 14 October 2026.

SBOK® is a registered trademark of its owner. Scrumagic is independent and is not affiliated with the owners of SBOK®.

Share this post Link copied

Nothing opened? This computer may have no email program set up. Write it in Gmail or use the copy button and paste the link into your email.

  • Learn Scrum 7 min read

    How velocity gets misused, and what it is actually for

    Velocity is how much a team finished in past Sprints, used to forecast how much it can finish in the next. It is a planning aid for the team that produced it. It stops working the moment it is used to compare teams, to rate individuals or to set targets, because people then change the numbers instead of the work.

  • Learn Scrum 6 min read

    Developers on a Scrum team: who counts and what they own

    In Scrum, "Developers" means everyone on the team who creates any part of the Increment, not only programmers. They own four things: the plan for the Sprint, the quality bar set by the Definition of Done, the daily adjustment toward the Sprint Goal, and holding each other accountable. Nobody outside the Developers tells them how to turn backlog items into working product.

  • Learn Scrum 7 min read

    Definition of Done, including for AI-assisted code

    The Definition of Done is the team's shared description of what a finished piece of work looks like. Work that meets it becomes part of an Increment, and work that doesn't goes back to the backlog. This post covers how to write one, what a good one contains, and what changes when some of the code is generated by AI.

  • Learn Scrum 6 min read

    Scrum outside software: what carries over and what changes

    Scrum began in product development, not code, and the Guide says it is now used in many domains with essentially complex work. What carries over is the structure: a goal, an ordered list, a small team, a short cycle and a regular inspection. What changes is the meaning of an Increment, the cost of change and the length of a useful Sprint. Here is how to translate each part.

  • Learn Scrum 6 min read

    When Scrum fits, and when it does not

    Scrum is built for complex work, where what to build and how to build it become clear only by trying. It fits poorly when the work is fully known and repeatable, when no one can own the backlog, when the team cannot deliver anything usable in a month, or when the organisation will not let the team decide how to work. Here are five tests and three worked cases.

We use analytics cookies to see which pages help and which don't. Scrumagic works the same whichever you choose, and you can change your mind any time from "Cookie settings" in the footer. Privacy Policy.