Ways of working · lesson 4 of 10
Ideas in this lesson
AIncrementaladd one working slice at a time
BIterativeimprove the same thing round by round
CPrototypea quick version built to learn from
DSpiraleach round tackles the biggest risk first

Iterative, incremental and spiral

Last updated

Instead of going round the wheel once, slowly, you can go round it many times, quickly. Build a small piece people can use, learn from it, and build the next. In this lesson you'll tell incremental from iterative development, see what prototypes are for, and meet Barry Boehm's spiral, where each round starts with the biggest risk.

By the end of this lesson you can

  • Tell incremental from iterative development
  • Say what a prototype is for, and when to throw it away
  • Describe Boehm’s spiral model and why it starts with risk

Round the wheel many times

Waterfall goes round lesson 1.2's wheel once. The alternative, used since the 1960s and described by many authors, is to go round it many times, each time with something smaller. Two words describe two different ideas, and they're often used together:

Incremental and iterative
IncrementalIterative
The ideaBuild it one slice at a time; each slice is finished and usableBuild a rough version of the whole, then improve it round by round
PicturePainting a mural one finished section at a timeSketching the whole mural, then adding detail all over, again and again
PilaQueue numbers first, then text messages, then reportsA plain first version of every screen, refined after each trial morning
Learns fromUsers of the slices already finishedUsers of each rough version

Most modern teams do both: deliver in slices, and improve each slice in later rounds. The methods in the rest of this stage are all ways of organising that.

Slices, or all at once

Two teams build the same Pila in the same time. Watch what the health centre has along the way:

In slicesQueue numbersText messagesWaiting-room screenReportsNothing in use yetAll at once0% built · nothing in use yetWeek 0
1 of 6 Week 0. Two teams set out to build the same Pila. One builds it in slices, each usable on its own; the other builds everything at once.

The slices team spent the same effort, but its users had something from week 4, and every slice was shaped by how they used the one before. The risk in the all-at-once version stays hidden until the end; in slices it shows up early, while it's cheap to fix (lesson 2.2's staircase).

As a UML activity diagram, incremental development is one loop, run once for each slice:

[no][yes]Agree thecore ideaPick the nextsliceDesign, buildand test itRelease itto usersDoneenough?Stop adding;maintain it

Press Walk through it to follow the work round the chart, one stop at a time.

  1. Start from the core idea.
  2. Pick the next slice, then design, build and test it.
  3. Release it to users, and listen to their feedback.
  4. Done enough? If not, go back and pick the next slice (a loop back). If so, stop adding and maintain it.
Iterative and incremental development as a UML activity diagram. In UML’s notation: the filled dot is where it starts and the ringed dot where it ends; rounded boxes are actions; a diamond with a question is a decision, with the condition for each way out in [brackets], and an empty diamond is a merge, where a way back joins the flow; Pink arrows go back to an earlier action.

Prototypes

A prototype is a quick version built to answer a question, not to keep. Paper sketches of Pila's screens, shown to Ate Cora, are a prototype. So is Marco's weekend version of the queue (lesson 2.1).

  • A throwaway prototype answers its question and is discarded. It's built fast, with shortcuts that would be dangerous in the real thing.
  • An evolutionary prototype is built more carefully and grows into the product, round by round.

The danger is mixing them up: a throwaway prototype, full of shortcuts, that the client likes so much it's put into use. Decide which kind you're building before you start. Royce's "do it twice" (lesson 2.2) was a kind of prototype.

The spiral: biggest risk first

In 1988 Barry Boehm described the spiral model. Each round of the spiral goes through four quarters: set the objectives and options; find the biggest risk and reduce it, often with a prototype; build and check the next piece; plan the next round. The distance from the centre is the money spent so far.

1. Objectives2. Biggest risk3. Build and check4. Plan next round
  1. Round 1. Will patients with basic phones use it? Paper prototype.
  2. Round 2. Can text messages arrive fast enough? A small test with the telco.
  3. Round 3. Will the server cope with 300 at once? Load test of a first version.
  4. Round 4. Is it ready for everyone? Full build, trial week, launch.

Simplified from Boehm (1988). The further out, the more has been spent.

The spiral's key idea is that risk decides what comes next. If the biggest risk is that patients won't use it, the first round is a paper prototype at the health centre, not a database. If the biggest risk is speed, the first round tests speed. Boehm presented the spiral as a framework that could include the other models: a project whose risks are all small might go round once, like a Waterfall.

As a UML activity diagram, each round of the spiral is four steps and a review:

[yes][no]1. Set objectivesand options2. Find the biggestrisk; reduce it3. Develop andtest this round4. Plan thenext roundReview: goround again?Release, or stop

Press Walk through it to follow the work round the chart, one stop at a time.

  1. Start, then 1. set the objectives and options for this round.
  2. 2. Find the biggest risk and reduce it, often with a prototype.
  3. 3. Develop and test this round’s work, then 4. plan the next round.
  4. Review: go round again? If yes, back to step 1 (a loop back). If no, release, or stop.
Boehm’s spiral model as a UML activity diagram. In UML’s notation: the filled dot is where it starts and the ringed dot where it ends; rounded boxes are actions; a diamond with a question is a decision, with the condition for each way out in [brackets], and an empty diamond is a merge, where a way back joins the flow; Pink arrows go back to an earlier action.

Spot the trap: building for every future feature

Spot the trapMarco

Before the first screen exists, Marco wants to spend six weeks designing a database for every feature Pila might ever have: appointments, medical records, vaccination reminders, payments.

What happens if…

Check what you learned

Pila goes live with queue numbers first, then text messages, then reports. Which is that?
What decides what each round of Boehm’s spiral works on?
What is a throwaway prototype for?

Sources

Every claim on this page comes from these sources: the standard, the founding text of a method, a study, or the official record of a project, from the body that publishes it. Industry reports are labelled as such.

All sources for Simple Software Development