OCR H446, section 1.2.3 (a)
A software development methodology is a planned approach to building software: the stages, who does what, and how the work is organised. Most methodologies include the same activities (analysis, design, implementation, testing and maintenance), but they differ in how those activities are ordered and repeated.
The waterfall lifecycle
In the waterfall model, the project passes through a fixed sequence of stages, and each stage is completed before the next begins. The results flow downwards, like a waterfall.
- Each stage produces detailed documents that are signed off before moving on.
- Going back to an earlier stage is difficult and costly.
- The users see the finished product only at the end.
- Works best when the requirements are clear and unlikely to change.
Agile methodologies
Agile is a family of approaches that build software in short, repeated cycles (iterations or sprints), usually of one to four weeks.
- Each cycle produces a working increment of the software.
- The customer or users are involved throughout, giving feedback on each increment.
- Requirements can change as the project goes on, and the plan adapts.
- Work is done by small, self-organising teams, with frequent face-to-face communication (such as a short daily meeting).
- Working software matters more than extensive documentation.
A common agile framework is Scrum, with sprints and a backlog (a prioritised list of features).
Extreme programming (XP)
Extreme programming is a particular agile method that takes good practices to an extreme to produce high quality code that can respond quickly to change.
Key practices:
- Pair programming: two programmers share one computer, one writing and one reviewing.
- Test-driven development: tests are written before the code, and the code is written to pass them.
- Very short iterations and frequent small releases.
- Continuous integration: the code is combined and tested many times a day.
- A customer on site to answer questions.
- Refactoring: continually improving the structure of the code without changing what it does.
- Simple design and collective ownership of the code.
The spiral model
The spiral model combines iteration with a strong emphasis on risk analysis. The project goes round a spiral of repeated cycles. Each loop has four activities:
- Determine objectives and requirements for this cycle.
- Identify and analyse risks, and find ways to reduce them (often with a prototype).
- Develop and test this stage of the product.
- Plan the next cycle, with the customer's review.
The project grows outwards, with a more complete version produced each time round. It is suited to large, complex and high-risk projects, where mistakes would be very costly.
Rapid application development (RAD)
RAD aims to produce a working system quickly, using prototyping and heavy user involvement instead of long planning.
- Prototypes are built fast, shown to users, and refined repeatedly from their feedback.
- It uses reusable components and powerful development tools to speed up the work.
- There's less up-front planning and documentation.
- The aim is a working system within weeks or a few months.
Summary
| Methodology | Key idea |
|---|---|
| Waterfall | Fixed stages in order, each one finished before the next |
| Agile | Short iterations, constant user feedback, welcomes change |
| Extreme programming | Agile with practices such as pair programming and test-first development |
| Spiral | Repeated cycles with risk analysis at each one |
| RAD | Rapid prototyping with user involvement and reusable parts |
Worked example
Task: name the methodology described by each statement.
- "Two developers share a screen, and the tests are written before the code." Extreme programming.
- "The requirements are finalised and signed off. Only then does the design start, and testing starts only after all coding." Waterfall.
- "A basic version is shown to users within two weeks, and their comments decide what is built next." Agile or RAD (an iterative, prototyping approach).
- "Before each phase, the team lists what could go wrong and builds a prototype to reduce the biggest risk." Spiral.
Exam tip: give the defining feature of each, using the key words: waterfall = sequential, agile = iterative with feedback, XP = pair programming and test-first, spiral = risk analysis, RAD = prototyping. The next page covers when to use each.
Check yourself
What is the main feature of the waterfall lifecycle?
The project moves through a fixed sequence of stages, and each stage is finished before the next begins.
What is pair programming?
An extreme programming practice where two programmers work together at one computer, one writing the code and the other reviewing it as it is written.
What is special about the spiral model?
Each cycle of the project includes a risk analysis stage, so that the biggest risks are identified and reduced at every iteration.
How does agile development treat changes to requirements?
It expects and welcomes them. Short iterations and constant user feedback mean the plan can adapt as the project goes on.