The Secret to Building Better Software: It's Not What You Optimize, But What You Understand
Teams tune the metrics they can count and miss how well they understand their system.
Engineering teams often pick the metrics that are easy to measure and then work to improve them, expecting that small gains will add up to better software and higher productivity. That path is tempting, and it is often misleading. Optimizing without a deep understanding of the system tends not to work, and it can do harm, because it creates a false sense of progress while hiding the problems that hold the software back.
For decades, organizations have tried to quantify developer productivity with simple metrics like lines of code or commit counts. Those metrics misunderstand what software development is for. Teams are building intelligent, maintainable systems that can evolve as the business’s needs change, and the amount of code they produce says little about how well they’re doing it. I think the most successful teams are the ones that understand their systems most deeply, whether or not they optimize the most.
The Escalating Cost of System Complexity
Complexity usually gets expensive slowly, and many teams will recognize some version of this story. A startup builds its first product quickly, prioritizing speed to market. The architecture grows organically as the company adds features and attracts customers, and each new feature takes longer to build than the last, because developers have to work through an increasingly complex web of service dependencies. Delivery cycles that started at two weeks stretch into months. Eventually a critical project misses an important deadline, and the company loses a partnership worth millions in potential revenue.
The human cost is equally severe. In a common pattern, knowledge of the system ends up concentrated in a few senior engineers. They come under mounting pressure as everyone turns to them to explain how parts of the system interact, and when burnout leads to turnover, as it eventually does, the rest of the team’s velocity drops sharply, because years of knowledge about the system leave with them.
Why Distributed Systems Make This Worse
None of this is new, but it has become more urgent. Microservices, cloud-native architectures and distributed systems have greatly increased the complexity of the software that teams build. An application that used to be a monolith, which a single team could (mostly) keep in their heads, is now a sprawling network of interacting services, each with its own dependencies and deployment cycle.
Traditional debugging and monitoring tools often fall short in systems like these. Understanding a single problem can mean tracing requests across several services, correlating logs from different systems and working through the subtleties of asynchronous communication, all of which puts an immense cognitive load on developers.
Where Developer Time Goes
That load shows up in how developers spend their time, and research consistently finds a gap between traditional metrics and what developers’ work involves. In a field study published in IEEE Transactions on Software Engineering in 2018, Xin Xia and colleagues recorded 3,148 working hours from 78 professional developers and found that they spent about 58% of that time on program comprehension, more than on navigating or editing code.
If understanding takes that much of a developer’s time, a team that makes it easier should be able to move faster. Imagine two teams building similar products in this kind of environment. Team A focuses purely on feature delivery and measures success by code shipped. Team B spends time building internal tools and documentation that improve the system’s observability. As the project goes on, Team B pulls further and further ahead of Team A in delivering new features, because its developers spend less time untangling the system before each change and have a clearer mental model of how the pieces fit together.
Other sources point the same way. In Clean Code (2008), Robert C. Martin put the ratio of time spent reading code to writing it at “well over 10:1”. He based that on replaying his own editing sessions, so it is one experienced programmer’s estimate. At Google, a 2022 study of the company’s own developers found that code quality and technical debt were among the factors causally linked to how productive developers felt, and that improvements in perceived code quality tended to come before improvements in productivity.
From Output-Driven to Understanding-Driven Development
Because understanding matters this much, we need a fundamental shift in how we think about productivity and progress. That means moving past simple, output-focused metrics toward a fuller picture of what drives innovation and improves a system.
Some high-performing organizations have started to make that shift. They are moving away from measuring what’s easy to count and toward understanding what lets them adapt and evolve. In practice, they give priority to work that improves how well people understand the system, even when it doesn’t immediately turn into new code. They design an evolutionary architecture, with modular parts and clear boundaries, so the system can keep changing. Developer experience becomes a strategic concern for them as well, because how productive developers are depends closely on the tools, processes and environments that support them.
Understanding-driven development needs tooling that gives immediate, accurate insight into how the system behaves, with navigation that follows the way engineers naturally investigate. Imagine being able to see the dependencies between services at a glance, follow data as it flows through the system and quickly find the root cause of a performance bottleneck.
Investing in Deep System Understanding
Investing in understanding can be hard to justify, because the most valuable development work often looks unproductive by traditional metrics. A deep investigation into system architecture might yield only a small code change, but that change could eliminate entire categories of potential problems. A week spent rethinking service boundaries might reduce future development friction across dozens of teams.
Improvements like these pay off through second-order effects that spread through the system. DORA, the research program Google Cloud now runs, has found that architecture, which can seem like an indirect factor, has a large effect on how well teams deliver software. Its 2017 State of DevOps Report found that the biggest contributor to continuous delivery, bigger even than test and deployment automation, was whether a team could make large-scale changes to the design of its system without permission from someone outside the team, and finish its work without fine-grained coordination with other teams. The report linked loosely coupled teams and services to higher throughput and to higher quality and stability.
As our systems grow more complex, we have to resist the temptation to optimize for what we can easily measure. Innovation and step-function improvements in software development come when teams can understand and evolve their systems as a whole, looking past immediate metrics to the broader patterns and relationships that drive lasting improvement. To do that, they need to see the behavior that emerges from the whole system as well as the code.
We should be asking how to build software better, as well as faster. That starts with a culture of deep system understanding, where developers have the tools and insight they need to work through complexity, and where comprehension gets the same priority as creating new code. The industry needs to have a conversation about how we move toward that.
Interested in our approach to system understanding? We’re always eager to hear from developers and invite them to try our latest tools. Reach out to share your thoughts and learn more.