Extreme programming (XP)

An Agile method created by Kent Beck that relies on engineering practices such as pair programming, test-first development, continuous integration, small releases and an on-site customer.

Extreme programming (XP) is an Agile software development method set out by Kent Beck in Extreme Programming Explained (1999, second edition 2004). Where Scrum organises how a team plans its work, XP concentrates on how the code is written. The values it names are communication, simplicity, feedback and courage, with respect added in the second edition. Practices most often listed include small releases, writing automated tests before the code they check, continuous integration, frequent refactoring, simple design, shared code ownership, a coding standard, a sustainable pace and an on-site customer.

Pair programming is the best-known practice. Two developers share one workstation: one writes the code while the other reviews each line and considers the wider design, and they swap roles often. For security, this acts as a continuous form of code review, although a pair can share the same blind spots, so it does not replace independent review or security testing. The automated test suite that XP builds up supports regression testing, and security tests can be added to it like any other.

Exam relevance: a scenario mentioning pair programming or test-first development is likely to point to XP. Candidates are expected to place XP within Agile, alongside Scrum, and to recognise pair programming as a review practice rather than a complete security control.