Was coding the real bottleneck?
I keep seeing people talking about how AI can resolve the bottleneck in software development. But how much do people actually understand about bottlenecks?
Bottleneck Definition
Let's start with a simple concept: a bottleneck is the process in a workflow that limits the overall production capacity.
In manufacturing, we have a sequence of processes to produce a product.
Let's say we have a product that requires:
- Cutting: 1 minute
- Deburring: 30 seconds
- Bending: 5 minutes
- Painting: 15 minutes
- Cure: 1 hour
- Packing: 2 minutes
Assuming we need an oven to cure this product, we could say it's our bottleneck.
However, if the oven can easily fit 60 products in each cycle, with the same 1-hour curing time, we can average that to 1 minute per product.
Curing is no longer our bottleneck; painting is.
Assuming painting takes 15 minutes just to apply the spray and we can hang 60 parts at once, the average painting time is actually 15 seconds per product.
Painting is no longer the bottleneck; bending is now limiting production.
Let's say we automate the bending machine, bringing the time down from 5 minutes to 2 minutes. Now packing is also a bottleneck, as it takes the same 2 minutes per product.
What we can observe is that bottlenecks always exist; they just move from one process to another. Sometimes, improvements can make a process faster, but not enough to move the bottleneck to another process.
Takt Time
Another important concept is takt time. This is the rhythm of production, and it's usually related to the bottleneck.
Takt time represents how frequently we need to produce a product to meet customer demand. The bottleneck, on the other hand, determines the maximum production capacity.
In our earlier example, before batching, the oven was our bottleneck. It could only produce 1 product per hour. Cutting, deburring, bending, painting, and packing could produce a lot more each hour, but they were limited by the curing time.
Once we grouped products into batches of 60 for painting and curing, the oven could produce an average of 1 product per minute. Bending then became the bottleneck, limiting production to 1 product every 5 minutes.
After automating bending and reducing its time to 2 minutes, packing also became the bottleneck, limiting production to 1 product every 2 minutes.
Production engineers, or industrial engineers, are constantly working to improve production capacity and balance processes to minimize waiting between operations.
This may sound simple, but it's not.
Some of the biggest challenges in finding bottlenecks are that actual times are often not the same as planned times. In some places, like custom shops, a company can produce a large variety of products using the same processes, so tracking or improving production rates can be very complex.
What about software development?
So how can we evaluate bottlenecks in software development?
If a bottleneck is defined by processes and time in manufacturing, we need to find equivalents in software.
Should we count lines of code? Pull requests? Features?
Lines of code are easy to measure, but may not produce any real value. Imagine removing 20K lines of code through refactoring. That can be very valuable for the codebase, but doesn't produce any real change to the product.
Pull requests are like products in custom shops. They can be large and important or just small and more relevant to code maintainability.
Features are also hard to consider. Some features require 10 lines of code and just a few minutes, while others may take thousands of lines and days of development.
Instead of measuring the size of the output, perhaps we should look at the time spent across the different stages required to deliver it.
Isolating processes

One approach I've seen is comparing the different stages of the development lifecycle.
A new feature needs to be planned, designed, coded, tested, deployed, and validated.
We often ignore the time spent outside of coding.
Planning a new feature may take weeks. Talking to customers, gathering requirements, evaluating approaches, planning infrastructure, and so on.
A small team without a good UX/UI member can spend more time deciding where to place a button than writing the code to make it work.
Coding is where we usually pay attention to time. "Why did this feature take 2 days to code?", "It took me 3 hours to solve this bug", etc.
Testing, when done by the developer, is usually incorporated into the coding time.
We think of deployment as automated by CI/CD, but some features require updates to the pipeline and often come with their own challenges.
Finally, we need some time to see customer acceptance. Train the users and hope it fits their workflow well.
Isolating the code and comparing it with other stages of the lifecycle makes more sense, but each feature, or each pull request, requires its own comparison.
AI's real gain is not necessarily in the bottleneck
Many senior developers I've talked to in the last few months agree that the real advantage of AI is not necessarily speed; it's quality.
This is not to say that AI doesn't improve speed. It certainly can. However, the people I've talked to feel that AI has improved the quality of their code, but not necessarily made them faster.
We have access to multiple approaches to solve a problem by asking AI, whereas before we had to search the internet (mostly Stack Overflow) to find possible approaches. That's a real time saver.
We then compare the approaches, decide which one to use, and implement it. Depending on the complexity, AI may produce the final code right away, but often we need some iterations before reaching usable code. AI context is limited, so the time saved earlier is often spent here iterating.
We also use AI to evaluate the code itself. Does it contain edge cases? Does it contain bugs? Does it pass unit and integration tests?
Adding comments and documentation is also more common now. Developers may not read the entire code, so comments may help them understand what's happening and save time in the future.
But how does this affect our bottlenecks?
Imagine a developer who spends two days implementing a feature and another three days testing, reviewing, and fixing issues. We may feel like the code was the bottleneck, but not really.
With AI the same developer could implement the same feature in four hours, spend time reading and understanding the code, iterating to refine it, all to spend the same two days. The initial step was a huge improvement, but overall had the same time.
On another case, a developer spends three days planning a new feature, and one day coding. With AI, the planing went down to half day. Planning was the bottleneck, but now, coding is.
Just like in manufacturing, improving one process doesn't necessarily improve the entire system at the same rate. The bottleneck simply moves.
Conclusion
Coding may be the bottleneck for some projects, but it's not necessarily the bottleneck in software development as a whole.
Stating that AI removes bottlenecks is often just based on guesses, not real measurements. Every feature is different and requires different amounts of time, just like different products in manufacturing. Just because process X was the bottleneck for product A doesn't mean it's also the bottleneck for product B.
The real value of AI is understanding where to use it. Sometimes it can save time, sometimes it can improve quality, and sometimes it can help with deciding the project's direction.
Optimizing an individual task doesn't necessarily optimize the entire system.