Nguyen Le Phong

Software Measurement and Estimation: Numbers That Help You Decide

Notes from Laird and Brennan's book: pick metrics from a real decision, give estimates as ranges with assumptions, read bugs as process data and retire stale charts.

Thursday planning. The spreadsheet has feature names in one column, hopeful dates in another and an empty column called "Effort". Someone asks how long the eKYC integration will take. There's a pause, a voice says "a week, maybe?", and the cell fills in. By Monday that cell is a date on a roadmap slide, and the "maybe" is gone.

Linda Laird and M. Carol Brennan wrote a whole book about the gap between what a team wants to know and what it can honestly say. Software Measurement and Estimation: A Practical Approach came out in 2006 from Wiley and the IEEE Computer Society. It's a textbook, with exercises and a running project about a theater ticketing system. Don't let that put you off. Most of its ideas still fit into a normal two-week sprint.

A Vietnamese software team around a table with notebooks and a blurred planning sheet, talking through an estimate before anyone commits to it.
The useful part of planning happens before the number goes in the cell, while people still say what they don't know.
About the book

These are my notes from Software Measurement and Estimation: A Practical Approach by Linda M. Laird and M. Carol Brennan (Wiley / IEEE Computer Society, 2006). I'm not summarizing all 14 chapters, only the ideas I'd actually use in a team. Chapter and section numbers below follow the table of contents on Wiley's page for the book.

The idea that runs through the whole book is simple: a number earns its place when it changes a decision, explains a risk or shows a trend. If it does none of those, it's decoration, however nice the chart looks.

Say your team is about to launch a new payment flow. "80% of tasks done" sounds reassuring, yet nobody can decide whether to ship from it. Better questions: are payment callbacks still timing out? How many orders get stuck after the user has already been charged? Do the failures cluster around one bank or one device? When something fails, can support trace the transaction? Those numbers are less pretty, and they sit right next to the actual release decision.

Start from the decision, then pick the number

Chapter 2, "What to Measure", opens with the Goal Question Metric approach. GQM comes from Victor Basili and his colleagues, who first used it to evaluate defects on projects at NASA's Goddard Space Flight Center. It has three levels: a goal you care about, questions that tell you whether you're reaching it, and metrics that answer those questions with data. Their paper has a line that still lands: a bottom-up approach won't work, because software has so many things you could count (time, defects, complexity, lines of code, effort) that without a goal you can't tell which ones matter or how to read them (Basili, Caldiera and Rombach, The Goal Question Metric Approach).

Plenty of teams still go bottom-up. They open the issue tracker, chart whatever is easy to export, and then hunt for a reason the chart matters. Going top-down looks like this:

  • Goal: ship a release that won't wake anyone up at 2 a.m. Question: are serious defects still arriving faster than we close them? Metrics: arrival, closure and open backlog by severity.
  • Goal: know whether an outsourcing vendor is in good shape. Question: do they deliver work we can use, at a quality we accept, and do they respond fast when something breaks? Metrics: accepted deliverables, defects found in their work, response time. Hours billed alone won't tell you. Chapter 11 goes further and ties these metrics to the contract itself (§11.4, "Metrics and the Contract").
  • Goal: fewer people dropping off at checkout. Question: where do they drop, and how much of it comes from technical errors versus confusing validation messages? Metrics: funnel drop-off per step, payment error rate, support tickets grouped by root cause, time to resolve a stuck order.

That last set is small enough for product, QA, backend and support to look at the same screen and argue about the same thing.

Nguyen Le Phong at a dual-monitor desk, with planning notes on one screen and the code for the same piece of work on the other.
A metric is most useful when it sits next to the work it describes, so you can go from the number to the trace to the fix without changing tools.
Common habitQuestion worth askingSignal that answers it
Count every bugWhich phase lets defects slip into later work?Defects removed per phase, escaped defects, backlog trend.
Count lines of codeIs the system growing in a way that changes effort and risk?Size trend, functional size, complexity, review effort.
Track utilizationAre we moving toward outcomes someone values?Milestones passed, accepted work, blockers, rework.
Show lots of chartsWhich few facts does leadership need this week?A small dashboard with target, trend and a way to drill down.

Section 2.2 adds the part teams forget. Its title says it all: "Extension to GQM: Metrics Mechanism is Important." Who collects the number, how often, from which system, using which definition? Without that, the metric goes stale within a month. Or worse, two people count "critical bug" two different ways, and the meeting turns into an argument about the number when it should be about the product.

A metric spec in two sentences

"Every Monday and Thursday during stabilization, the QA lead pulls P0 and P1 defects opened, closed and still unassigned in the last 48 hours from the issue tracker." Then the decision rule, which matters as much as the number: "If the critical backlog grows in two reviews in a row, optional scope moves out before anyone talks about overtime."

An estimate is a range with assumptions attached

Chapter 6, "Estimating Effort", tours the main families of methods: expert estimation (including work breakdown and the Delphi methods), benchmark size data, estimation by analogy, proxy points such as function points and Use Case Points, and algorithmic models. You don't need to memorize the formulas. What I took away is that each method sees a different part of the work. An expert carries real context and also real bias. A parametric model looks easy to defend, and it's only as good as the size you feed it. Proxy points help when the team counts the same way every time.

So the book gives a section to combining estimates (§6.3), and that's the habit worth stealing. When expert judgment, your own history and a size-based estimate land close together, you can be fairly confident. When they disagree, the gap itself is information: unclear scope, an unfamiliar API, a requirement nobody has pinned down, or an assumption nobody has said out loud.

Back to that eKYC integration. A senior engineer says five days because "the API is simple." Say your history tells another story: the last few third-party integrations took 10 to 15 days, because the sandbox kept going down, the error cases weren't documented and compliance review arrived late. Then you break the work down and find the happy path really is about three days. Retries, reconciliation, support logs and monitoring are where the rest of the time goes. None of those numbers is wrong. Together they tell you what to write down as assumptions and where to put a buffer.

Section 6.4.1 has a title every planning meeting could use: "Targets vs. Estimates." A target is the date someone wants. An estimate is what the analysis says the work looks like. Both are legitimate, and trouble starts when one gets relabeled as the other without anyone saying so. A better answer in planning sounds like this:

"Happy path only, with a stable partner API: five to seven days. With proper timeout handling, retries, reconciliation and an ops dashboard: nine to fourteen. If we don't have sandbox access by Wednesday, I'll need to re-estimate."

It's longer than one number. It also lets the PM see exactly what's being traded, and §6.5, "Estimating Early and Often", backs up that last sentence: re-estimate as you learn instead of defending the first guess. For more on how estimates work as conversations, see estimates are conversations.

The risky shortcut

"Just add people and pull the date in" is rarely a plan. Fred Brooks put it bluntly in The Mythical Man-Month: "Adding manpower to a late software project makes it later" (Brooks, 1975). New people need context, reviews and someone's time to onboard them. The date gets shorter on paper while the work gets harder to finish.

Let quality show up before release day

Chapter 7 is called "In Praise of Defects", which is a great title for a chapter about bugs. The point is that defects are data about your process. Where they get introduced, where they get found, how fast they arrive and how many escape to users all tell you something about how the team works.

The book calls Defect Removal Efficiency "a key metric" (§7.4.2.2). Capers Jones, who has published DRE data for years, defines it as the share of defects found and fixed before release. His recipe: keep a record of every defect found during development, then add what customers report in the first 90 days. If the team found 90 and customers reported 10, DRE is 90%. He puts the 2011 U.S. average at about 85%, and notes that ISBSG counts only 30 days after release, so check the window before you compare numbers (Jones, Software Defect Removal Efficiency).

The overall percentage is a start. It gets more useful when you split it by phase, which is what §7.6, "Cost Effectiveness of Defect Removal by Phase", is about. Take a simple profile update screen. QA keeps finding bugs: required fields aren't clear, the date format differs between screens, error messages don't say what to fix. Testing is where those bugs got found, and it isn't where they started. They came in when the spec had no examples, the Figma file had no error states, or the API contract didn't define validation rules. Fix it there and the whole class of bugs goes away.

Chapter 10, "Measuring Progress", lists the early signals: milestones, code integration, testing progress, defect discovery and defect closure. None of them is perfect. Together they tell you there's trouble while there's still time to do something about it.

Say the integration branch turns red every afternoon. Look only at the end of the sprint and the story is "the release slipped." Watch the signals during the sprint and a pattern shows up: builds break after three modules touch the pricing rules, the automated tests miss discount-plus-voucher cases, and bug closure slows because nobody clearly owns that rule. Now you know where the bottleneck is, and the people fixing bugs don't just get more pressure.

A prototype workbench with cables, sensors and a laptop, where readings are taken while the system is still being built.
Signals help most while the system is still on the bench. On release day they mostly tell you what already happened.
One question before release

Before asking "have we run every test case?", ask "is the system still producing important defects faster than we can understand and close them?" A release can look busy and still not be converging.

Metrics expire, and people learn to play them

Once a number turns into a target, people adapt to it. Reward lines of code and the code gets longer. Reward closed tickets and the tickets get smaller. Reward test count and you get a pile of tests that assert nothing much. The visible number improves while the system stays the same.

Velocity is the classic one. If a team gets asked every week why story points aren't going up, people learn to split tickets thinner, round points up and avoid work that's hard to count: refactoring, reading production logs, writing a safe migration. The chart smooths out while the codebase gets harder to change. At that point the metric has stopped describing the work and started describing how people protect themselves.

The book handles this from two sides. Section 2.5 is titled "What to Measure is a Function of Time": a metric that helped last year may have done its job, lost its link to any decision, or started rewarding the wrong behavior. And the last chapter, "Presenting Metrics Effectively to Management", has a section on "Evolving Metrics" (§14.6) near the end. A healthy measurement program retires old metrics and adds better ones, and it keeps checking whether each number still matches the thing it claims to describe.

Chapter 14 is also a nice recipe for dashboards. Its first four sections: decide on the metrics, draw the picture, create a dashboard, drill for information. A dashboard that follows that order shows a target, a trend and a path to the next question. If a chart can't lead to a decision or a drill-down, it's probably a reporting habit that nobody has questioned in a while.

How I'd try this with a team

I wouldn't launch a measurement program. That's too heavy for most teams, and it tends to die the first busy month. I'd pick one recurring decision that currently runs on gut feeling or vibes. Release readiness is a good first pick. Estimation confidence, vendor delivery, defect leakage and production reliability also work.

Then I'd write the chain in plain words. Goal: know whether the release is converging. Question: are important defects arriving slower than we close them? Metrics: arrival, closure and backlog by severity. Mechanism: the issue tracker, with one shared definition of severity. Rhythm: twice a week during stabilization. Decision rule: if the critical backlog grows two reviews in a row, cut scope or move the date.

On the board itself, four rows are enough: open critical defects, new minus closed defects in the last 48 hours, defects older than five days with no clear owner, and untested scope by risk level. All green and the team has a real reason to keep going. One red row and everyone knows where to look first, which beats opening twelve charts and leaving without a decision.

None of this makes software as predictable as a factory line. There's still judgment, discovery and people in it. What it does give you is one shared picture to argue about, so the conversation moves from memory, worry or seniority to "this trend says X, what do we do?"

Try this week

  • Pick one decision your team makes every sprint and write its goal, question and metric in three lines.
  • For that metric, write down who collects it, from where, how often, and what the decision rule is.
  • Next time you give an estimate, give a range and two assumptions that would change it.
  • Look at your last ten bugs and note where each one was introduced, next to where it was found.
  • Delete or hide one chart nobody has used to make a decision this quarter.

The book won't hand you a perfect formula, and it doesn't pretend to. What it gives you is a habit: say what you're trying to decide, define the number carefully, collect it the same way every time, and change the metric when reality changes. It's not glamorous work. It does make the next planning meeting a bit less of a guessing game.

What did you think?

Frequently asked questions

What is software measurement?
It's defining, collecting and reading numbers about a software product, process or project so a team can make a decision. Laird and Brennan's book keeps coming back to one test: if a number doesn't change a decision, explain a risk or show a trend, it's decoration.
What is GQM (Goal Question Metric)?
A method from Victor Basili and colleagues, first used to evaluate defects on NASA Goddard projects. You set a goal, write the questions that show whether you're reaching it, then pick metrics that answer those questions. Chapter 2 of Laird and Brennan adds that every metric also needs a mechanism: who collects it, from where, how often and by which definition.
Why are software estimates so often wrong?
The work involves discovery: scope shifts, dependencies surprise you and hidden complexity shows up halfway through. It gets worse when a target (the date someone wants) is treated as an estimate. Give a range, list the assumptions behind it, combine more than one method, and re-estimate as you learn.
What is defect removal efficiency (DRE)?
The share of defects found and fixed before release. Capers Jones counts customer-reported defects for 90 days after release: if the team found 90 and customers reported 10, DRE is 90%. ISBSG uses a 30-day window, so check the window before comparing numbers.
How do you keep metrics from going bad?
Start each metric from a real decision, write down how it's collected, and review it regularly. Watch for gaming once a number becomes a target, such as thinner tickets or inflated story points, and retire metrics that no longer support any decision.