User Avatar

I make Software Engineering fun and easy using visuals. 20+ years of experience in building large-scale software systems.

Good Metrics, Bad Metrics
Rajat Mishra

Metrics are important to understand the productivity of Software Development processes but the wrong metrics can do more harm than the value they provide.

Bad Metrics usually measure effort, are easy to calculate but also easy to game

  • Lines of Code added

  • Number of code check-ins

  • Number of Pull Requests created

  • Number of features completed

  • Number of QA-raised defects

  • Number of story points completed

Good Metrics usually measure outcomes and are difficult to game

  • Customer Satisfaction

  • Developer Satisfaction

  • Number of customer-raised defects

  • System Uptime

  • DORA Metrics (Deployment frequency, Lead time for changes, Mean time to recovery, Change failure rate)

No discussion of metrics can be complete without Goodhart’s Law

Image Source: https://sketchplanations.com/goodharts-law