What making software involves · lesson 7 of 8
Ideas in this lesson
ASame phases, different depthevery project plans, builds and tests; how much varies
BSafety-criticalsoftware whose failure can hurt people
CIntegrity levelhow much checking a part needs, by what its failure would cost

Small projects, big projects

Last updated

A weekend script and an aircraft's flight software go through the same phases, but nowhere near the same way. How much planning, writing down, reviewing and testing a project needs depends on its size and, above all, on what a mistake would cost. In this lesson you'll compare four projects and look at a case where removing safety checks cost lives.

By the end of this lesson you can

  • Say how the depth of each phase changes with a project’s size and risk
  • Explain why safety-critical software is slow on purpose
  • Describe what went wrong with the Therac-25 and what it taught

Four projects on the wheel

Every project in lesson 1.2's wheel goes through the same seven phases. What changes is how deep each goes. Choose a project:

PlanRequirementsDesignBuildTestReleaseMaintain

Pila, a barangay app, five people. Every phase, lightly: a one-page brief, user stories, a short design note, automated tests, a staged release. People depend on it, but a failure means a paper queue for a morning.

Thickness shows roughly where the effort goes. The shapes are illustrative, not measured.

A weekend script and Pila are both right to skip things an aircraft can't. Doing an aircraft's process for a weekend script would waste weeks; doing a weekend script's process for an aircraft would be reckless. Choosing the right depth is called tailoring the life cycle.

Slow on purpose

Safety-critical software is software whose failure can hurt or kill people: in aircraft, medical devices, railways, cars. It's built slowly on purpose:

  • Every requirement is traced to the design, the code and the tests that check it, so nothing is forgotten.
  • Someone independent checks the work, not only the people who wrote it.
  • Regulators or certifiers approve it before it's used.
  • Changes repeat the checks, even small ones.

The IEEE's verification and validation standard, IEEE 1012, makes this a scale: each part of a system gets an integrity level by what its failure would cost, and higher levels need more checking. The same project can have both: Pila's colour scheme needs little checking; the rule that decides who gets a priority number needs much more.

The Therac-25

The best-known case of software that was trusted too much. This timeline follows Leveson and Turner's 1993 investigation:

  1. 1970s Therac-6 and Therac-20
1 of 8 1970s. Atomic Energy of Canada Limited (AECL) builds radiation therapy machines that treat cancer. On the earlier models, hardware interlocks, physical safety locks, stop the machine from firing in an unsafe setting, whatever the software does.

What it taught

Leveson and Turner found that no single bug explained the accidents. Among their lessons:

  • Overconfidence in software. Removing the hardware locks assumed the software was right. Reused code had only seemed safe because the hardware used to catch its mistakes.
  • Poor software engineering practice. Little documentation, no independent review of the software, and testing that didn't look for timing problems.
  • Unclear error messages. "Malfunction 54" told the operator nothing, so operators learned to continue past it.
  • No way to learn from reports. Each accident was treated alone, and the first reports weren't believed.

Each of those is a phase on the wheel done too thinly for what was at stake: design, test, release, and maintenance. Lesson 9.4 returns to safety-critical work.

Spot the trap: "paperwork is a waste of time"

Spot the trapMarco

Marco reads about aircraft software and says: “Requirements traced line by line? That’s paperwork. Real developers write code.” Rina says: “After the Therac-25, Pila should have the full process too: every document, every review.”

What happens if…

Check what you learned

What changes between a weekend script and an aircraft’s software?
What did the Therac-25 remove that its older models had?
Why did slow, careful testing miss the Therac-25’s fault?

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