Dec 2, 2026
How to Measure Software System Complexity (Part 1)
Part one of a series on software complexity: why software becomes complex — from the depth of application across domains, the diversity of stacks and languages, computer architecture and protocols, the nature of requirements, and people themselves — plus a survey of complex systems and complexity from different perspectives.
1. Background
Ever since Eric Evans wrote about tackling software complexity in his book, many others have tried to explain what software complexity is and how to deal with it. But we may have overlooked a more basic question: how do we measure it? In software architecture engineering there are complexity functions, such as Neal Ford’s fitness functions, and there are metrics and mathematical functions for measuring coupling. But those only describe complexity from one angle of software engineering, and for most software practitioners they feel a bit too specialized.
In this series I will try to discuss the question more thoroughly across three or four articles, and build a model out of fairly simple metrics so that complexity can be quantified in a straightforward way. If my math were better, the series might be more exciting — but you can still look forward to what is coming.
2. Why Software Becomes Complex
Let’s briefly look at some reasons software itself becomes complex, starting with the macro view of the software industry and computer programming as a whole.
2.1 Software’s Deep Reach into Different Domains
Anyone familiar with computers, or who got into programming early, knows how far things have come from punch cards to modern computers. As computer architecture took shape and spread, software found a place in many industries and scenarios: the military, networking, banking and stock trading, operating systems — and now the Internet Plus era. Digital transformation today builds on what used to be called informatization, so more or less everything we do now may need some software support.
Take a look at veteran tech blog sites such as CSDN and you will see how finely the software field has been divided: operating systems, networking, algorithms, embedded systems, cloud computing, cloud native, and so on. The more fields you learn, the more there seems to be to learn. It is quite similar to the culinary arts, with chefs specializing in different kinds of cooking — except that in software this specialization happened much faster. No single chef masters every cuisine, and no single developer masters every kind of software development.

The mind map above is adapted from CSDN’s homepage, and there would be even more branches if we went into detail. Software development has formed a large system of its own, which is why complexity has grown explosively from the 1990s to today.
2.2 The Diversity of Technology Stacks and Languages
Early languages like B and VB are familiar to many, followed by C, then C++, Python, Java, and others. Each solved the problems of its era and its scenarios. At the language level, creating a language has a wider reach than creating a piece of middleware, though the two are not really the same thing. Because of how computer architecture works, the higher the level of a language, the farther it sits from the machine: complexity in one dimension goes down while complexity in others may go up. There are now over 200 programming languages used in software development. Naturally, the technology stacks built on one or many of them have multiplied as well — a hundred flowers blooming at once, where you can write “Hello World” in any number of languages. But for practitioners, Hello World is only the beginning.
By technology stack I mean the tools and SDKs we use to build software. In the past you could develop software offline; today it can be painful without a network connection. The diversity of tools shows how much knowledge, and how much depth with those tools, it takes to build an application now.
Given how diverse stacks and languages already are, it is no wonder people say that once you go into programming, you are in too deep to turn back.

2.3 Computer Architecture and Protocols
Judging from the von Neumann architecture, it is hard to imagine overturning the current shape of computer systems. Recent conversations about chips suggest that a more capable architecture may appear someday, but for now the foundation is stable. Since the arrival of computers there have been graphical interfaces and input/output devices, and the corresponding low-level software has been folded into the computer system and into the network. These are basics that users do not need to understand in depth.
For practitioners, understanding computer organization and network protocols helps in designing better software. But it also adds complexity to software development: deep or bizarre bugs are often not at the application layer at all, but come from the operating system or from network configuration. Running into that sort of problem again and again can be genuinely crushing. In the early days, when networks did not exist and information was isolated, tracking down one of these issues could take a month, two months, or longer.
So today, being connected is a basic condition for developing software, and knowing how to Google is another basic skill.

2.4 The Inherent Complexity of Requirements
Consider two questions:
- What is software development developing?
- What problem is software development solving?
On the surface these are not hard. Product people say they are developing software products; engineers say they are writing code — both are right, and what they solve is a real-world need. Wanting a game or an app is itself a requirement, and there is definitely difficulty involved. From the requirement to a released product there are many steps, and whether you work alone or on a team, you have to understand a lot more than just software, including knowledge outside the software domain.
Of course, turning an idea or a real-world problem into a computer program gets complicated, and that takes a process of understanding and learning. The love-hate relationship between product managers and engineers these days says a lot about this. A formal software development process always includes a feasibility analysis, which is where we work out whether a requirement can be solved by programming at all, and how.
2.5 The Complexity of People
How does this connect to software complexity? Simply put, software is written by people. Different people bring different degrees of complexity to what they build, and interests, working hours, and team collaboration all feed into it as well — adding headcount, flipping the schedule upside down, or deciding to tear everything down and start over. People are changeable and flexible in their thinking, so software takes on a dynamic kind of complexity as a result.
3. Complex Systems
Here I have grouped complex systems across a few industries and looked at their complexity through their development, their use, and the sectors around them.
3.1 Low-Level Control and Driver Systems
Low-level control and driver systems are the layer between the operating system and hardware: CPUs, registers, drivers, and so on — Linux has many of these. This category also includes embedded software such as machine-tool controls or aircraft control systems. These systems are built around circuit boards, control signals, and wiring, along with hardware devices such as sensors.
Designing a hardware-oriented control system means knowing a lot about both hardware and software, including how to read a circuit diagram and how to design one.
3.2 Industrial-Grade Software Systems
I call software that can be used in large-scale commercial settings “industrial-grade” — the kind of software whose absence becomes news when sanctions hit. Such software relies on strong technical capability and market share to earn substantial returns. It is a form of foundational software with few substitutes, and it is hard to develop, so its complexity is high.
3.3 Large Complex Network Systems
Large distributed network systems are no longer remarkable. Major social networks and e-commerce sites at home and abroad are all large complex network systems. Such a system is usually not one piece of software but many software systems working together, so its complexity shows up in its scale, its long call chains, and its heavy dependence on the network and on infrastructure.
4. Complexity from Different Perspectives
4.1 Software Requirement and Design People
- Requirements place high demands on the UI.
- Requirements place high demands on interaction experience.
- Requirements place high demands on performance.
- Requirements place high demands on security.
- Requirements are hard to actually implement.
- Business flows are long.
- Business rules are complex.
4.2 Software Developers
- Requirements are hard to understand.
- Implementation needs a specific development environment or SDK.
- Requirements need more than one language to complete.
- Code is hard to test and refactor.
- Bugs are hard to reproduce.
- There is a lot to build and development takes a long time.
- Work usually requires a team to complete.
- Requirements change all the time.
4.3 Software Users
- The software has bugs.
- The interaction is too complicated.
- The UI is ugly.
- Performance is poor.
- The software only runs in a specific machine environment.
4.4 Software Owners
- Software carries intellectual property and monopoly power, improving profitability.
- Software that is too complex and hard to use drives users away.
5. Conclusion
This article is an introduction to complexity across the software field as a whole, looking at it from several angles and at the factors in related domains. Software development has become highly specialized, so people’s understanding of complexity may differ from one field to another. I work on middleware at an internet company, mostly at the microservice application layer, and know relatively little about other areas. But when it comes to complexity, the weight of each detailed factor differs from domain to domain — I will get into that in the articles that follow. Stay tuned.
Next in the series: How to Measure Software System Complexity (Part 2)
Comments
Comments are powered by GitHub Discussions. Sign in with GitHub to join the discussion.