What making software involves · lesson 3 of 8
Ideas in this lesson
AVerificationdid we build it right? (does it match the spec)
BValidationdid we build the right thing? (does it meet the need)
CQuality characteristicshow well it works, not only what it does

Right thing, built right

Last updated

A program can do everything its specification says, pass every test, and still be no use to the people it's for. Software engineers keep two questions apart: did we build it right, and did we build the right thing? In this lesson you'll meet both, and the list of qualities that “works” is really made of.

By the end of this lesson you can

  • Tell verification from validation
  • Explain how software can pass every test and still fail its users
  • Name the main quality characteristics of ISO/IEC 25010 and match complaints to them

Two questions

Every piece of software has to pass two different checks:

  • Verification: did we build it right? Does it match what we wrote down: the requirements, the design, the specification? Checked by reviews, tests and inspections against those documents.
  • Validation: did we build the right thing? Does it meet the real need of the people it's for, in the place they'll use it? Checked by watching real users, trials and acceptance by the client.

The IEEE's standard on the subject, IEEE 1012, treats them as two separate activities, and so does ISO/IEC/IEEE 12207. One can pass while the other fails.

Built right, and still wrong

Suppose the team had written Pila's specification without visiting the health centre: "Patients sign in with email and password, and tap to get a number." Here are two versions:

Version A: matches the spec

Pila

Email address

Password

Sign in to get a number

New here? Create an account

  • Every item in the spec: done
  • All 120 tests pass
  • Needs a smartphone, data and an email address
Version B: fits the health centre

PILA Barangay San Roque health centre. Your number is 42. We will text you when 5 people are ahead of you.

  • Text PILA to the centre’s number from any phone
  • A smartphone page too, for those who have one
  • Lola Remy can use it

Version A is verified: it does everything its spec says, and every test passes. But most of the health centre's patients share one basic phone per family and have no email. Lola Remy can't use it. It fails validation.

Version B came from a spec written after watching the real queue. It's verified against that spec too, and it's also valid.

The mistake in A wasn't in the code. It was in the requirements, and no amount of testing against them could find it. Validation needs the people the software is for.

Quality is more than “works”

"Does it work?" usually means "does it do what it should?" That's only one part of quality. The international standard for software quality, ISO/IEC 25010 (2023 edition), names nine quality characteristics:

ISO/IEC 25010’s quality characteristics, in plain words
CharacteristicThe questionPila example
Functional suitabilityDoes it do the right things, correctly and completely?Priority numbers go to the right people
Performance efficiencyIs it fast enough, without wasting resources?A number in seconds, even at 7 a.m. on a Monday
CompatibilityDoes it work alongside and with other systems?The barangay’s records system can read its reports
Interaction capabilityCan people use it easily, including people with disabilities?Large text; works by text message
ReliabilityDoes it keep working, and recover from failures?A power cut doesn’t lose the queue
SecurityIs data protected from people who shouldn’t have it?Nobody can see who is visiting and why
MaintainabilityIs it easy to change and fix?New opening hours take an hour, not three weeks
FlexibilityCan it be moved or adapted to new settings?Another health centre can use it
SafetyDoes it avoid harm to people?It never tells someone with an emergency to wait

The 2023 edition added safety, and renamed usability to interaction capability and portability to flexibility. Older books use the old names. Requirements about these qualities, not about features, are the subject of lesson 3.6.

Match eight complaints

Real complaints about software rarely use these words. Which characteristic is each complaint about?

0 of 8 placed right

  1. “It takes a whole minute to give me a number on Monday mornings.”

  2. “The letters are too small for me to read, and the buttons are tiny.”

  3. “It lost my number when the power went off.”

  4. “My neighbour could see my name and why I was visiting.”

  5. “It gives priority numbers to everyone, not only seniors and pregnant women.”

  6. “Changing the opening hours took the developers three weeks.”

  7. “The barangay’s records system can’t read Pila’s daily report.”

  8. “We couldn’t move it to the city’s new server; it only runs on the old one.”

Spot the trap: "all the tests pass"

Spot the trapMarco

It’s the end of June. Marco shows the dashboard: every one of Pila’s 120 tests is green. “We’re done. Let’s tell Kap. Ernesto it’s ready.”

What happens if…

Check what you learned

“Does Pila match its specification?” Is that verification or validation?
How can software pass every test and still fail its users?
“It lost my number when the power went off.” Which quality is that?

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