XP builds on best practices such as unit testing, pair programming and refactoring. The basic principles of XP are communication, simplicity, feedback and courage; applying the methodology goes through the following five steps:
- Choose story.
- Write tests.
- Run tests.
- Refine, program and refactor 14repeat as needed.
- Go to step 1, repeat until all stories are complete.
Let 19s compare against the Scientific Method, which was first introduced by Francis Bacon. It was not used as a strict discipline until Isaac Newton later in the 17th century.
The goal of the Scientific Method is to provide a set of steps to ensure the development of provable theories that may lead to new and greater understandings of the workings of nature and its systems. These theories are gradually stepped up in generality until the highest level, at which point there may be opportunity for unification of theories.
The Scientific Method consists of six steps, and you can see the similarity with XP:
- Make observations.
- Create hypotheses.
- Make predictions.
- Conduct experiments.
- Modify hypotheses if predictions are not met and go to step 3.
- Declare hypothesis as theory.
Go read the whole thing - it's an interesting article.