Skip to content

Agile and Hybrid

Extreme Programming

PMP · Agile and Hybrid · 3 lessons · about 32 min

Part of the free PMP video course: every lesson starts with its video →

What this chapter covers

Extreme Programming (XP) is an agile method with an engineering focus. Scrum supplies a framework of accountabilities, events and artifacts for product development; XP supplies more specific practices for software engineering, planning and collaboration. The "extreme" in the name means pushing effective practices such as pair programming, test-first development and continuous integration to the limit, and it does not mean working overtime. Lesson 1 looks at the twelve practices as a whole and at "slack", which is unique to XP. Lesson 2 covers the four high-frequency technical practices (test-driven development, refactoring, pair programming and continuous integration) plus simple design. Lesson 3 covers team practices: collective ownership, sustainable pace, the on-site customer, coding standards and osmotic communication (osmotic communication is originally a property of the Crystal method, and the exam often tests co-located work in XP questions).

XP questions are mostly matching questions: given a description, match it to the name of a practice; or given a team's difficulty, choose the most suitable practice. The chapter also has several small worked examples: the "fail, pass, refactor" cycle of test-driven development, a capacity calculation for slack, a comparison of change volumes under continuous integration, and an overtime-capacity calculation for sustainable pace.

Lessons in this chapter

How to study this chapter

First get the names of the twelve practices down by heart, then pick out the four that come up most: test-driven development, refactoring, pair programming and continuous integration. For each, remember one sentence and one stem signal: write the test first; do not change external behavior; two people at one computer; merge as soon as it is written. For the team practices, remember two pairs: collective ownership goes with coding standards, and osmotic communication depends on co-located work (the exam often tests it this way). Do not forget that slack is unique to XP, and that extreme does not mean overtime.

Chapter map

Extreme Programming (agile from the technical point of view)

  • Planning and release: planning game · small releases · 40-hour week · on-site customer
  • Coding and quality: simple design · test-driven development · refactoring · pair programming · continuous integration
  • Communication and standards: system metaphor · collective ownership · coding standards
  • XP planning practice: slack (not in the Scrum framework)
  • Crystal method: osmotic communication (co-located work helps achieve it; the exam often tests it in XP questions)

Lesson 1

Extreme Programming: the Twelve Practices

Lesson video

Lesson overview

Extreme Programming (XP) is an agile method with an engineering focus. Scrum manages the rhythm of a project; XP governs how the code is written. This lesson first looks at where XP sits within agile, then goes through the twelve practices as a whole, and finally covers ongoing inspection and "slack," the latter being an XP practice that the Scrum framework does not prescribe. Exam questions often give a description and ask you to match it to the name of a practice, or ask "what does XP have that Scrum does not?". The next two lessons cover the technical practices and the team practices.

Where XP sits within agile

Agile can be seen from different points of view. From the product's point of view it leans toward lean. From the project's point of view the representative is Scrum, which prescribes rhythm, accountabilities and events but does not say how developers write code. From the technical point of view the representative is XP, which provides a whole set of engineering practices. XP often uses short iterations of 1 to 2 weeks; "extreme" means pushing effective practices such as pair programming, test-first development and continuous integration to the limit, and does not come from the iteration length. Extreme does not mean overtime: XP explicitly calls for a sustainable pace and does not favor working overtime week after week.

The twelve practices

What follows are the twelve practices of classic early XP, which is also the summary commonly seen on the exam (the Agile Practice Guide appendix classifies XP practices differently, as primary and corollary practices, with names that differ slightly from these). Extreme Programming is usually summarized as twelve practices: planning game, small releases, system metaphor, simple design, test-driven development, refactoring, pair programming, collective ownership, continuous integration, 40-hour week, on-site customer and coding standards. To make them easier to remember, they fall into three groups:

GroupPractices
Planning and releasePlanning game, small releases, 40-hour week, on-site customer
Coding and qualitySimple design, test-driven development, refactoring, pair programming, continuous integration
Communication and standardsSystem metaphor, collective ownership, coding standards

One sentence on each:

  1. Planning game: make a plan quickly and keep refining it as details become clear.
  2. Small releases: release new versions in very short cycles and incrementally, so progress is easy to estimate and user feedback is handled promptly.
  3. System metaphor: use a suitable metaphor to convey what the system is like, so communication runs smoothly.
  4. Simple design: deal only with current requirements and keep the design simple.
  5. Test-driven development: write the test code first, then the program.
  6. Refactoring: adjust the internal structure without changing external behavior, reducing complexity and removing redundancy.
  7. Pair programming: two programmers share one computer and write the same piece of code together.
  8. Collective ownership: anyone can change code anywhere in the system at any time, and everyone is responsible for all of the code.
  9. Continuous integration: integrate as soon as each small piece is finished, so there is always a running version.
  10. 40-hour week: overtime is discouraged. If it is truly necessary, one week now and then is acceptable, but not a second week in a row.
  11. On-site customer: a real user who actually contributes is on the team and is responsible full time for answering questions.
  12. Coding standards: communicate through a common code standard and keep unnecessary documentation to a minimum.

The "40-hour week" is also often called "sustainable pace", and "system metaphor" is often shortened to "metaphor". The names differ slightly but the content is the same.

Key point

Four keywords appear most often on the exam: test-driven development, pair programming, refactoring and continuous integration. A question usually gives a description and asks you to match it to the practice name.

Ongoing inspection and "slack"

XP teams believe the process can keep getting better. They periodically inspect whether their practices, team culture and goals are appropriate and adjust accordingly, with the aim of improving the process and making the team more effective. XP also has a practice that the Scrum framework does not: slack. Within a weekly cycle, a few extra low-priority stories are added, and when other stories take longer than expected, these extra stories are dropped first so that the main commitment is not missed. Timeboxes, iteration planning, respect and courage are shared by XP and Scrum.

Worked example. A team has a weekly capacity of 20 ideal hours. It plans 16 ideal hours of must-do stories plus 4 ideal hours of slack (two low-priority stories of 2 ideal hours each). Midweek, one must-do story takes 3 ideal hours more than estimated (story points are only relative size and cannot be used to record actual effort, so hours are used here):

  1. Remaining capacity = 20 − (16 + 3) = 1 ideal hour, which is less than the 2 ideal hours of either slack story, so both slack stories are dropped.
  2. The must-do scope originally estimated at 16 ideal hours is protected: actual usage is 16 + 3 = 19 ideal hours, which does not exceed the capacity of 20 ideal hours.
  3. If the overrun were 5 ideal hours instead: 16 + 5 = 21 > 20, and even the must-do stories could not be protected. Slack is a buffer, not unlimited insurance; beyond the buffer you still have to negotiate scope with the customer.

A few other methods only need to be recognized by keyword. Feature-Driven Development works in units of "features", breaking the system into many small features that are designed, built and tested one by one. The Dynamic Systems Development Method is business-driven, using timeboxes and MoSCoW prioritization to deliver the most important requirements first within fixed time and budget (you will often hear it linked to the Pareto 80/20 idea, meaning do the most important part first; on the exam it is enough to recognize the keyword). Crystal is a family of lightweight methods; it chooses a heavier or lighter method according to team size and project criticality (the consequence of a defect), and the variants are often distinguished by colors such as Clear, Yellow, Orange and Red. They are tested rarely and occasionally appear as distractors.

Worked examples

Example 1 The purpose of periodically inspecting practices, culture and goals

Question 1Example

A team uses Extreme Programming (XP) to develop a logistics scheduling system and appoints a member to check periodically whether the team's practices, culture and goals are appropriate. What is the purpose of doing this?

Show answer and explanation

Correct answer: D

A team using Extreme Programming (XP) to develop a logistics scheduling system appoints a member to check periodically whether the team's practices, culture and goals are appropriate. The question asks for the purpose of doing this.

Agile teams believe the process can keep getting better, so they periodically inspect the practices they use, their culture and their goals, and adjust accordingly. This is routine, whole-picture continuous improvement, and its purpose is to improve the way of working and raise the team's effectiveness. The two signals in the stem, “periodically” and “practices, culture and goals”, both point to whole-picture continuous improvement. The answer is D.

Why the other options are wrong

  • A. A retrospective is only one form of continuous improvement. The value of periodic inspection is not in preparing material for a particular meeting.
  • B. Finding the direct cause of a specific defect is problem analysis. What is inspected here is the overall practices, culture and goals, and it is routine and whole-picture.
  • C. The inspection may produce lessons worth recording, but updating organizational process assets is only a by-product, not the purpose of periodic inspection.

Key takeaway An XP team periodically inspects its practices, culture and goals in order to improve the process continuously and raise team effectiveness.

Variation If the case were “a serious defect appeared after a release and the direct cause must be found”, the tool is root cause analysis. If asked what the fixed meeting at the end of an iteration is, it is the retrospective.

Something wrong with this question?

Report an issue with this question

Example 2 A practice XP has and Scrum lacks

Question 2Example

A team uses Scrum and XP together. Which of the following is a practice that XP has and the Scrum framework does not?

Show answer and explanation

Correct answer: D

A team uses Scrum and XP together. The question asks which of the following is a practice XP has that the Scrum framework does not.

“Slack” is an XP practice (common exam practice): in the weekly cycle, a few extra lower-priority user stories are added, and when other stories take longer than expected, these extra stories are dropped first so that the main commitment is not missed. The Scrum framework does not have this. The other three exist in both methods, so none can be the answer for “unique to XP”. The answer is D.

Why the other options are wrong

  • A. Timeboxed iterations are a rhythm that both Scrum and XP use. They are not unique to XP.
  • B. Iteration planning exists in both Scrum and XP, to decide at the start of each round what work to complete. It is not unique to XP.
  • C. Respect and courage are two of Scrum's five values and are also XP values, so both methods share them.

Key takeaway Unique to XP is “slack”, which is a reserve of extra stories that can be dropped. Timeboxes, iteration planning, respect and courage are in both methods.

Variation For example, a week has 20 ideal hours available, must-do stories are estimated at 16 hours and slack stories at 4 hours. If a must-do story actually takes 3 hours more, the must-do stories originally estimated at 16 hours actually use 19 hours and only 1 hour of capacity remains, so the slack stories estimated at 4 hours are dropped to make sure the must-do stories are finished (story points are relative size and are not used to record actual effort). If asked what the two methods share, choose timeboxes, iteration planning and so on.

Something wrong with this question?

Report an issue with this question

Common traps

Common trap

  • Extreme Programming does not mean overtime: a 40-hour week; if overtime is truly necessary, one week now and then is acceptable, but not a second week in a row.
  • Scrum does not prescribe how to write code; XP does. The two can be used together.
  • "Slack" is a practice XP names explicitly and that the Scrum framework itself does not prescribe; timeboxes, iteration planning, respect and courage are also found in Scrum.
  • Periodically inspecting practices, culture and goals is continuous improvement. It is not gathering material for a particular retrospective, and it is not tracing the cause of a particular defect.
  • Feature-Driven Development, the Dynamic Systems Development Method and Crystal are not XP practices.

Key takeaways

  1. XP is an agile method from the technical point of view and often uses short iterations of 1 to 2 weeks. Scrum manages the project rhythm; XP manages engineering practices.
  2. The twelve practices: planning game, small releases, system metaphor, simple design, test-driven development, refactoring, pair programming, collective ownership, continuous integration, 40-hour week, on-site customer, coding standards.
  3. The four high-frequency ones: test-driven development, pair programming, refactoring, continuous integration.
  4. Unique to XP: "slack". Add extra low-priority stories, and drop them first if time runs over.
  5. XP periodically inspects its practices, culture and goals, in order to improve continuously and make the team more effective.

Lesson 2

XP Technical Practices: Test-Driven Development, Refactoring, Pair Programming and Continuous Integration

Lesson video

Lesson overview

Of the twelve Extreme Programming practices, the ones that really come up often are four technical practices: test-driven development, refactoring, pair programming and continuous integration, plus simple design. The exam turns them into scenarios: what to do when only one person knows a certain technology, when to merge code once it is written, and what to do when a team keeps adding features and keeps getting slower. This lesson explains how each is done, why, and the stem signal that points to it, and uses a small example to show the test-driven development cycle.

Test-driven development (TDD)

The method is to write the test first and the code second, in a three-step loop: write a test that fails; write just enough code to make it pass; once all tests pass, tidy up the code, then move on to the next feature. The purpose is to let tests define "done right", so the code's goal is to pass the tests. It is like fixing the acceptance dimensions before a renovation: there is something to check against at every step of the work.

Figure 1 The test-driven development cycle: fail, pass, refactor

Worked example

The rule: orders of $99 or more ship free; otherwise shipping is $8. List three cases first, but write only one test per round. Round 1: write "cart of $80, amount due $88". It fails because the feature is not written yet; write the minimum code to make it pass. Round 2: add "cart of $99 (the boundary), amount due $99". It fails (the code just written also charged shipping on $99); change the code so both tests pass. Round 3 adds a further test case: "cart of $120, amount due $120". It passes straight away, which shows that the current implementation already handles this additional case; it is not a new fail-then-pass cycle. Check: 80 + 8 = 88, $99 reaches the free-shipping threshold, and $120 ships free, so all three results match what was expected. After each round passes, tidy up the code and run all the tests to confirm nothing was broken.

Similar practices are acceptance test-driven development (ATDD) and behavior-driven development (BDD). The idea is the same: first make clear what "right" means. Fixing acceptance criteria before an iteration starts follows the same logic.

Refactoring

Refactoring tidies only the internal structure and does not change external behavior. Its purpose is to reduce complexity, remove duplication, improve flexibility and pay down technical debt. Technical debt is the future rework or refactoring cost created by technical work earlier done by expedient means. It can appear in code, architecture, tests, documentation and more, and rushing to meet the schedule is one common cause. The more debt owed, the harder each later change becomes. Refactoring needs test protection: rerun the tests after each change. Passing tests lower the risk of introducing regression defects, but they do not replace adequate test coverage and necessary reviews.

Pair programming

Two people share one computer and one keyboard and mouse; one writes while the other watches, and they swap at any time. It is in effect a real-time code review, catching problems earlier, and it also passes one person's experience to the other. Pair programming looks like two people doing one person's job, but it is not. It generally improves code quality and knowledge sharing, and it may raise overall efficiency by reducing defects and rework (actual efficiency depends on the task, the experience of the people and how they are paired).

A common exam scenario: only one person knows a certain technology, or a new member's lack of skill is slowing progress. Exam tip: in this kind of scenario, the first choice is to use pair programming to transfer knowledge while doing the work. (PMBOK 8 asks you to choose among mentoring, coaching, training and knowledge sharing according to the nature of the gap; pairing is a common exam practice for this scenario.) In principle the self-organizing team decides the pairings itself and swaps freely. The project manager does not assign them directly, but can guide and support when obstacles arise. Pairing brings collaboration, review and knowledge sharing; it is not "each person thinking independently".

Continuous integration

As soon as each small piece of code is finished, it is merged into the shared mainline and built and tested automatically, rather than waiting until all the features are written and assembling everything at once. It is like assembling a model: check each part on the spot as soon as it is fitted, instead of leaving it all to the end. The benefit is that code problems and conflicts are found and resolved early. Continuous integration is not continuous delivery. PMBOK 8 states: “Continuous delivery is the practice of incrementally delivering value to production on an ongoing basis. This approach focuses on delivering tested and validated product increments, ensuring they are production-ready at all times.” It further explains that automation and a continuous flow from backlog prioritization through iterative development and testing support frequent, efficient deployment while minimizing risk. Continuous integration is one of the practices that support continuous delivery.

Worked example. A team of 5, each changing about 100 lines a day. Integrating once a day merges 5 × 100 = 500 lines each time. Integrating only at the end of a 10-day iteration merges 500 × 10 = 5,000 lines at once. When something goes wrong, the amount of new change to check each time is about 1/10 as much in the first case as in the second, which usually helps narrow the search (the actual effort of investigation also depends on dependencies and on how well tests pinpoint problems). Check: 5,000 ÷ 500 = 10.

Simple design

Simple design means meeting only the needs in front of you, removing redundancy, making the code easy for the team to read, and not building in complicated structure for the future. As long as current requirements are fully met, a simple design is usually easier to understand and refactor, and it also reduces the technical debt created by over-design. A common practice is to keep each function and each feature small, with a function doing only one thing, so that team members can easily pick up one another's work.

Worked examples

Example 1 What is the value of refactoring

Question 1Example

In one iteration, the team spends time refactoring a module that is working correctly. What is the value of doing this?

Show answer and explanation

Correct answer: C

In one iteration, the team spends time refactoring a module that is working correctly. The question asks for the value of doing so.

Refactoring adjusts the internal structure of the code without changing the system's external behavior, reducing complexity and removing duplication. The module is working correctly, so the purpose is not to fix defects or add features; the value is in improving the internal design and paying down technical debt, so that later changes are easier and less error-prone. The stem stresses “working correctly”, which rules out the motives of fixing defects and adding features and leaves only improving the internal design. The answer is C.

Why the other options are wrong

  • A. Adjusting task priority is the Product Owner's work on the backlog. It has nothing to do with the internal structure of the code.
  • B. Verifying customer value relies on the iteration review meeting and customer feedback. Refactoring leaves external behavior unchanged, so the customer sees no difference.
  • D. Scope changes are handled through scope or change management. Refactoring does not change functionality, so it does not involve scope.

Key takeaway Refactoring does not change functionality. It only improves the internal design and reduces technical debt.

Variation If the stem said “after the change, the user interface has an extra button”, that is a new feature, not refactoring. If asked how to confirm the refactoring broke nothing, the answer is to rerun the tests.

Something wrong with this question?

Report an issue with this question

Example 2 Pairs rotate every few days: what does the project manager do

Question 2Example

While observing a team that uses Extreme Programming (XP), a project manager notices that every programmer works in a pair with another person, and the partners change every few days. How should the project manager react?

Show answer and explanation

Correct answer: B

A project manager observing an XP team sees that every programmer works in a pair and the partners change every few days. How should the project manager react?

Pair programming in XP encourages rotating partners: skills back one another up, communication and feedback flow more smoothly, and knowledge is not concentrated in a few people. The team is self-organizing, so how to pair is the team's own decision, and the project manager should understand it and not interfere. The stem contains no sign of a problem; it merely describes the team's own arrangement, so nothing needs to be “solved” and the manager only needs not to disturb it. The answer is B.

Why the other options are wrong

  • A. The brief adjustment period that rotation brings is the cost of spreading knowledge, and the team will adjust by itself. Requiring fixed partners weakens skill backup.
  • C. Having the project manager draw up a list of pairs is directing a self-organizing team, which is the opposite of the agile approach.
  • D. A long-fixed “master and apprentice” pairing is not good for everyone learning from one another, and it is also an arrangement imposed from outside.

Key takeaway The team itself decides the pairing partners and rotates freely; the project manager does not interfere.

Variation If the stem said “a new member does not know the technology”, the person can be paired with someone who knows it, still arranged by the team. If the team asks the manager to help resolve a pairing conflict, the manager can guide the conversation but does not assign pairs for the team.

Something wrong with this question?

Report an issue with this question

Example 3 A developer is unskilled in the technology and slows progress

Question 3Example

In one iteration, a team is developing an order export feature and it looks as if it cannot be finished on time. The reason is that the developer responsible for the feature is not yet skilled in the technology required, while another member of the team is familiar with it. How should the team resolve this?

Show answer and explanation

Correct answer: B

In an iteration, the team is developing an order export feature and it looks as if it cannot be finished on time. The reason is that the developer responsible is not yet skilled in the technology required, while another member of the team is familiar with it. An appropriate way to resolve this must be chosen.

The root of the problem is an individual skill gap. The XP approach is pair programming: the developer works at the same station as a member who knows the technology, and the more experienced one teaches while doing, so the work catches up with schedule and the skill stays in the team. The team happens to have someone familiar with the technology, so the resource is at hand. The answer is B.

Why the other options are wrong

  • A. Re-estimating changes only the numbers. It does not remove the skill gap, and the next similar feature will be late in the same way.
  • C. The stem does not say that the Scrum Master has the required coding expertise, while it explicitly identifies a team member who does. Pairing the two developers addresses the work and transfers knowledge directly, so C is less suitable than B.
  • D. Handing the hard feature to someone else just avoids the problem. The original feature still has no one to do it, and the team learns no new skill.

Key takeaway When a member's lack of skill slows progress, first have the team solve it internally with pair programming, instead of changing estimates or swapping tasks.

Variation If no one on the team is familiar with the technology, bring in the skill through training or an outside expert, or first schedule an exploratory technical spike. For a small one-off task, weigh knowledge transfer before deciding.

Something wrong with this question?

Report an issue with this question

Common traps

Common trap

  • Refactoring does not add new features and does not fix defects. Anything that changes external behavior is not refactoring.
  • "When should code be merged once it is written?" The answer is immediately, not at the end of the iteration and not after all the features are done.
  • Continuous integration is not continuous delivery or continuous release. It keeps code integrated frequently, and only together with a continuous delivery pipeline can it be deployed at any time; whether to release is a business decision.
  • The pairing partners in pair programming are decided by the team and swap freely. The project manager does not assign or fix them.
  • For a skill gap, consider first using pair programming to transfer knowledge while working (common exam practice), rather than re-estimating or switching to easy tasks. You should still choose mentoring, coaching, training or another way of sharing knowledge according to the nature of the gap.

Key takeaways

  1. Test-driven development: write a failing test first, then just enough code, then tidy up once it passes.
  2. Refactoring: change only the internal structure, not external behavior, to reduce complexity and technical debt. It needs test protection.
  3. Pair programming: two people at one computer, real-time code review, knowledge transfer. Partners are self-organized and can rotate.
  4. Continuous integration: merge and test automatically as soon as each small piece is written, to find problems early. Only with a continuous delivery pipeline can it be deployed at any time.
  5. Simple design: meet only the needs in front of you and reduce redundancy.

Lesson 3

XP Team Practices: Collective Ownership, Sustainable Pace, the On-Site Customer and Coding Standards

Lesson video

Lesson overview

The previous lesson covered the technical practices of writing code. This lesson covers how the team works together: who owns the code, how long people work, whether the customer is present, and what the code looks like. These practices are tested in a very concentrated way, and the stems have a recognizable feature. Asked "which practice best lets information flow naturally?", the answer is co-located work (sitting together), which XP teams use; it is not one of the twelve classic practices listed in Lesson 1. ECO: People domain, Task 8 (Plan and manage communication).

Collective ownership and coding standards

Collective ownership: anyone can change code anywhere in the system at any time, and everyone is responsible for all of the code. Agile looks at team performance, not individual performance. But this brings a risk: if people are afraid of being blamed and dare not touch code, or do not write comments, or each writes in a different style, the whole code base falls into chaos. So it must be paired with coding standards: everyone writes to a common standard, and the standard itself reduces dependence on extra documentation. The two practices are a pair: open up the right to change, and use a common standard as the safety net.

Worked example

On one team, the billing module was always maintained by Daniel alone. When he took leave, no one dared touch it, and a defect went unfixed for three days. After switching to collective ownership, anyone who finds a problem can fix it directly, while the team agrees rules for naming, indentation and comments and uses reviews and automated checks to make sure everyone's changes still follow one style.

The 40-hour week and sustainable pace

The twelve practices of classic early XP promote a 40-hour week: if overtime is truly necessary one week, the next week should not continue it. The Agile Practice Guide uses the more general wording "sustainable pace". This agrees with the agile principle of sustainable development: both the team's pace and its people must be sustainable, and long-term overtime tends to lower output.

Worked example. A team of 6 has a normal weekly capacity of 6 × 40 = 240 person-hours. If each person works 10 hours of overtime a week, capacity becomes 6 × 50 = 300 person-hours, 60 more in the short run, an increase of 60 ÷ 240 = 25%. But this is borrowed capacity: fatigue brings defects and rework, and effective output in the next week can actually fall. So classic XP treats two weeks of overtime in a row as a warning sign rather than a way to speed up.

The on-site customer and osmotic communication

On-site customer: a real user who actually contributes is on the team, responsible full time for answering questions, so feedback is always at hand and does not wait for the next review meeting. When the team sits in the same space, members hear and absorb one another's discussions without trying to. This is called osmotic communication. (The Agile Practice Guide lists close or osmotic communication as a shared property of Crystal methods, and co-located work is the XP practice that best supports it; the exam often tests it this way.) To let information flow naturally you do not need a dedicated meeting: co-located work is the most helpful practice. It differs from pair programming: pairing is deliberate, active exchange between two people, while osmotic communication is unconscious and reaches the whole team.

Small releases, the planning game and system metaphor

Small releases ship new versions in very short cycles, which makes it easier to estimate progress, control workload and risk, and handle user feedback promptly. In the planning game, the customer or business side sets the value and priority of stories, the development team estimates the effort, and the two sides negotiate the release plan and iteration plan according to capacity and keep adjusting them. A system metaphor is an analogy the team shares to explain how the system works and to unify understanding of the architecture and naming. For example, an order processing system can be likened to a restaurant: the order desk takes orders, the kitchen prepares them, and the pickup window hands over the result. All three serve one thing: keeping progress, direction and communication transparent.

Compare

  • Scrum: spells out three kinds of accountability, events and artifacts, providing a lightweight framework for managing complex product work, and does not prescribe specific engineering techniques.
  • XP: prescribes engineering practices such as test-driven development, pair programming, refactoring and continuous integration, and is usually used alongside the rhythm of Scrum.
  • Kanban: does not prescribe iterations and manages flow.

Key point

Remember the division of labor: Scrum provides a lightweight framework for managing complex product work, and XP provides the specific engineering practices for "how to write good software". Writing the test first is test-driven development, two people at one computer is pair programming, changing structure but not behavior is refactoring, merging frequently with automated build and verification is continuous integration, and co-located work brings osmotic communication.

Worked examples

Example 1 Which practice best supports osmotic communication

Question 1Example

To keep the software in a working, deliverable state at all times, a team develops with XP. Members want to pick up project information unintentionally from the conversations around them without holding a dedicated meeting, which is osmotic communication. Which of the following XP practices best supports this kind of communication?

Show answer and explanation

Correct answer: D

An XP team wants members to pick up project information unintentionally from the conversations around them, without a dedicated meeting. This is osmotic communication. The question asks which XP practice best supports it.

The key to osmotic communication is “unintentional” and “conversations around them”: when the team sits in the same shared space, members overhear and absorb one another's discussions without trying to, and information flows naturally. The only practice that provides this environment is the team working together in the same space. Letting information flow naturally depends on the environment, not on one more meeting and not on some coding move. The answer is D.

Why the other options are wrong

  • A. Refactoring is a technical practice about the structure of the code. It has nothing to do with how members come by information.
  • B. Test-driven development likewise focuses on code and has nothing to do with osmotic communication.
  • C. Pair programming is deliberate, active exchange between two people, while osmotic communication is unconscious and reaches the whole team, not just two people.

Key takeaway Osmotic communication comes from the team sharing one space, so information flows without anyone trying.

Variation If the stem asked about “real-time code review and knowledge transfer”, the answer is pair programming. If it asked about “a real user on the team who answers questions full time”, the answer is the on-site customer.

Something wrong with this question?

Report an issue with this question

Common traps

Common trap

  • Osmotic communication comes from co-location, not from pair programming, refactoring or test-driven development.
  • Collective ownership does not mean no one is responsible; it means everyone is responsible, and it must be paired with coding standards.
  • Sustainable pace does not favor overtime week after week. Overtime is not an agile way to speed up.
  • The on-site customer is a real user on the team who can actually contribute, not a customer representative who occasionally attends reviews.
  • XP is not a replacement for Scrum. They divide the work differently and are often used together.

Key takeaways

  1. Collective ownership: anyone can change any code, everyone is responsible for all the code, paired with coding standards.
  2. 40-hour week: sustainable pace. If overtime is truly necessary one week, there must not be overtime the next.
  3. On-site customer: a real user who contributes is on the team, answers questions full time, and feedback is always at hand.
  4. Osmotic communication: co-located work, with information flowing without effort.
  5. Scrum provides a framework of accountabilities, events and artifacts for product development; XP provides more specific software development, planning and team collaboration practices; Kanban manages flow. The three can be used together.

This chapter has 15 questions in the full bank; the questions beyond the worked examples are practiced in the question bank. Practice this chapter.