Wiki: Lies, Damned Lies, Metrics and KPIs

For agents: Markdown version · Wiki index · Explore

Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.

Summary

The speaker explores the dangers of relying on flawed software metrics and key performance indicators, arguing that metrics are frequently used to deceive oneself and management. The talk highlights how poor metrics drive toxic behaviors, such as gaming code coverage or suppressing production changes, while offering better alternatives like combining leading and lagging indicators. Ultimately, the audience learns how to align metrics with real organizational dilemmas, use trends over snapshots, and design safe experiments to drive genuine improvements.

Key points

  • 0:13 Software engineering teams often use metrics and numbers to deceive themselves and others.
  • 3:20 Common bad metrics include lines of code per day and standalone code coverage percentages.
  • 5:22 Trends over time are much more meaningful than isolated snapshots because they provide the necessary context to measure improvement.
  • 9:43 Every metric should be tied to a specific organizational dilemma, an experiment, or a behavioral change.
  • 39:46 Lead time measures the total duration from a feature’s conception to its production deployment, while cycle time measures handoffs within teams.
  • 1:04:48 Leading indicators track daily actions, whereas lagging indicators reflect ultimate outcomes like quality or escape bugs.
  • 1:04:48 Anonymous confidence surveys and recovery times are powerful tools to prevent gaming the system and align team incentives.

Takeaways

  • Always analyze metrics as trends over time rather than isolated snapshots to track real progress.
  • Combine leading indicators with lagging indicators to ensure that short-term activities actually improve final outcomes.
  • Avoid vanity metrics like standalone code coverage and instead track metrics that are hard to fake, such as escape bugs and lead time.
  • Establish confidence index surveys to gauge how developers truly feel about their code and testing reliability.

Questions this talk answers

  • How can engineering teams choose metrics that genuinely reflect software delivery performance without encouraging bad behaviors?
  • What is the difference between leading and lagging indicators, and how should they be used together?
  • Why are traditional metrics like code coverage misleading, and how can teams measure test effectiveness more accurately?

Technologies

Git, Jira

Tags

agile, continuous delivery, developer productivity, engineering management, kpi, metrics, software quality