OCR H446, section 1.2.3 (b)
There's no single best way to develop software. The right choice depends on the project. You need to weigh the merits (advantages) and drawbacks (disadvantages) of each methodology (described in 1.2.3 (a)), and say when each might be used.
Waterfall
Merits
- Simple and easy to understand and manage: clear stages and milestones.
- Thorough documentation at each stage, which helps maintenance and when staff change.
- Well planned from the start, so the cost and time are easier to estimate.
- Suits teams where people specialise in one stage.
Drawbacks
- Inflexible: it is hard and costly to change requirements once a stage is finished.
- Users see nothing until the end, so a misunderstanding may not be found until it's too late.
- Testing is left until late, so serious errors are discovered late.
- Delivers nothing useful if the project is cancelled partway through.
Used when: the requirements are clear, complete and stable; the project is well understood, with a fixed budget and deadline; or safety-critical systems where detailed specification and documentation are required (for example in aerospace or medical devices).
Agile
Merits
- Flexible: it copes with changing requirements.
- Frequent delivery of working software, which gives early value.
- Constant user feedback, so the product is more likely to meet their needs.
- Problems are found early because testing is continuous.
- Good team communication and morale.
Drawbacks
- Harder to predict the final cost, time and scope.
- Less documentation, which makes maintenance and handover harder.
- Needs active, regular involvement of the customer, who may not have the time.
- Can suffer "scope creep" (the project keeps growing), and works best with small, experienced teams.
Used when: the requirements are unclear or likely to change, the project is small to medium, users are available to give feedback, and quick, early delivery matters (for example a new app or website).
Extreme programming (XP)
Merits
- High quality code: pair programming and test-first development find faults early.
- Very responsive to change, with short cycles and frequent releases.
- Simple, clean design, and constant refactoring keeps the code in good shape.
- A customer on site keeps development on track.
Drawbacks
- Pair programming uses more programmer time and can be more expensive.
- Needs a disciplined team, and a customer who is always available.
- Little documentation, and it doesn't scale easily to very large teams.
- Writing so many tests takes effort.
Used when: requirements change often, the team is small and skilled in the same place, and code quality and rapid response are very important.
Spiral
Merits
- Strong risk management: the biggest risks are tackled early.
- Flexible and iterative, and users give feedback in every cycle.
- Suited to large, complex projects, with the budget and time estimates improving as the project goes on.
- Prototypes reduce misunderstandings.
Drawbacks
- Expensive and time-consuming, because of the repeated risk analysis.
- Needs experienced staff skilled in risk assessment.
- Complicated to manage, and overkill for a small or low-risk project.
- It can be hard to know when to stop.
Used when: the project is large, complex, costly and high risk, or involves new technology, so that mistakes would be very expensive (for example a major defence or banking system).
Rapid application development (RAD)
Merits
- Fast: a working system is produced in a short time.
- Heavy user involvement means that the system fits the users' needs.
- Reusable components and tools speed up development and save cost.
- Less up-front planning, so requirements can change.
Drawbacks
- Not suited to large or complex systems, and the speed can mean a lower quality, less well-designed result.
- Needs skilled developers and committed users.
- Less documentation and planning.
- It depends on being able to break the system into components.
Used when: a working system is needed quickly, the project is small to medium, and user feedback is easy to get (for example an internal business tool).
Comparison
| Waterfall | Agile | XP | Spiral | RAD | |
|---|---|---|---|---|---|
| Changing requirements | Poor | Good | Good | Good | Good |
| User involvement | Low (start and end) | High | Very high | High | High |
| Documentation | Heavy | Light | Light | Moderate | Light |
| Risk handling | Weak | Good | Good | Excellent | Moderate |
| Speed to first version | Slow | Fast | Fast | Moderate | Fastest |
| Cost predictability | High | Lower | Lower | Moderate | Moderate |
| Best for | Fixed, stable, safety-critical | Changing needs | Small skilled teams | Large, high-risk | Quick small systems |
Worked example
Task: recommend a methodology for each project, with reasons.
- Flight control software for a new aircraft. Waterfall (or a careful, risk-driven approach such as the spiral model): the requirements are fixed and safety-critical, thorough documentation and testing are legally required, and mistakes could cost lives.
- A mobile app for a start-up that isn't sure what users want. Agile: the requirements will change as the company learns from early users, and quick releases let them test the idea cheaply.
- A large new banking system with new technology, and many unknowns. Spiral: risk analysis at each cycle manages the high cost of failure.
- A simple internal booking tool needed within weeks. RAD: fast prototypes, with staff giving feedback.
Exam tip: don't just list features. Match the methodology to the scenario: say whether the requirements are fixed or likely to change, the size and risk of the project, and how available the users are. Give at least one merit and one drawback.
Check yourself
Give one drawback of the waterfall model
It is inflexible: changing requirements after a stage is finished is difficult and costly, and users see nothing until the end.
Give one drawback of agile development
It is harder to predict the final cost, time and scope, and it needs the customer to be involved regularly. It also produces less documentation.
For which kind of project is the spiral model best suited?
Large, complex, expensive and high-risk projects, where the repeated risk analysis helps to avoid costly mistakes.
Which methodology suits a project where requirements are fixed and safety is critical?
Waterfall, because of its detailed planning, documentation and testing at each stage.