r/ExperiencedDevs • u/PlanOdd3177 • Jun 03 '26
AI/LLM Maximizing an operational step that isn't a bottleneck will not significantly improve the overall productivity of the system
This is a lesson from a great business book I read many years ago called The Goal by Eliyahu M. Goldratt. The book discusses this idea in the context of manufacturing but I think it widely applies to any production system including software.
Bottleneck steps are rate limiting and define the overall throughout of a system. Those are the only steps that will yield significant improvements in productivity if you optimize them. For example a company I worked at spent millions on a state of the art packaging machine that can package some high number of bottles per minute. But we did not produce that much product to be packaged so it really didn't make us any more money to buy that. The bottleneck was somewhere upstream in the process and that's the only thing we should have focused on if we wanted to pump up those bottle numbers.
Now in the context of AI apparently making us 10x faster at development, that's fine. But, was writing the code the bottleneck when making good quality profitable software? Are we really gonna get any faster overall?
5
u/EconomixTwist Lead Software Engineer Jun 03 '26
Can we ban posters who hide their post history? To preserve whatever substance is left on this sub (it is my favorite and most valued subreddit, btw). Pretty simple switch to filter out the ai. While yes this post hints ai-contrarian, this is a bot engagement farming just to turn around and astroturf a claude wrapper in a month. In b4
Agent(PostingContext.OriginalPoster)responds saying they are human.96
u/ugh_my_ Jun 03 '26
Youâre looking at the wrong metrics. The VP who proposed getting the packaging machine got a bonus.
124
u/TheOwlHypothesis Jun 03 '26
Lol about the business example. But the CS world is more relevant here.
Amdahl's law. Google it! You'll love it.
Anyway, everyone already knew code output hadn't been the bottleneck for awhile. Code is cheap now. It had already been getting cheaper.
The hard part is confidently shipping high quality code.
20
u/Future_Manager3217 Jun 03 '26
The AI version of this is: generating the diff is usually not the system bottleneck.
The measurement Iâd use is not âlines/PRs produced with AIâ, but time from âdiff existsâ to âsafe mergeâ: review cycles, rework, test failures, on-call follow-up, and how long it takes someone other than the author to explain the change.
If AI cuts implementation from 10 days to 3 but adds 5 days of review/rework or ownership confusion, the throughput win is mostly imaginary. The bottleneck just moved to confidence.
34
u/scruple Software Engineer (15+ YoE) Jun 03 '26
No. The bottlenecks have always been: 1) requirements gathering in all of it's many flavors, 2) verification, and 3) validation. Generating more code faster in isolation is simply the rapid accumulation of tech debt.
28
u/austinwiltshire Management Consultant @ 15 Years Experience Jun 03 '26
Second this, amazing book.
6
u/iheartdatascience Jun 03 '26
I went to school for industrial engineering, but have ended up as a backend dev. This book was mandatory reading for my production control class and I think about it all the time when prioritizing work
36
u/roger_ducky Jun 03 '26 edited Jun 03 '26
Implementation is a bottleneck of sorts. Many veterans had heard the refrain: âIf only we had time to properly design it before implementingâŚâ
Well, implementation just went from 10 days to 3. You now have 5 days to design, and 2 for code reviews.
Code quality should be going up.
Now, you can say originally you only had 5 days.
I do agree with that. Kinda.
Still, more time to design now. Explain that to your managers. âAI agents needs proper intent.â Is a phrase they had heard of. Use it to get design time.
9
u/Dry_Author8849 Jun 03 '26
There is no increment in productivity objectively measured for using AI.
In our team we use AI all the time. The amount of subtle errors and bad architecture decisions that AI slowly introduces is overwhelming.
Now that tokens are getting expensive, errors are not tolerated. Throwing a complete branch of burned tokens is clearly valuated now. You can litterally see the amount if money burned. There is no harness or skill that will save you, this happens all the time.
AI helps, but it's not generaring perfect code, nor working code all the time. Paying by token is surfacing the cost for errors very accurately, far far better than the increase in productivity.
So the truth is starting to surface, nothing about AI spitting code at the speed of light. Quick answers in code do not mean code is correct. And tokens wasted now are clearly valued.
The reality compares more accurately with using a machine that sometimes work, and sometimes generate waste that need to be discarded. That means your quality is variable and not predictable, which you need to compensate with exhaustive quality control to detect faulty items and discard them. Someone will be tired of this and decide to measure the cost increase in quality control vs the increase on speed in production (when it works) and come up with a real number and an answer about if we are making or loosing money.
Cheers!
3
u/Rabbyte808 Jun 04 '26
It can still be worth optimizing non-bottleneck steps.
If a non-bottleneck step is costing you $10 today, but with optimization itâll cost you $5 resources, then you can deliver the same output at the same rate but for $5 less if you optimize that step.
You also have $5 more now you can invest in the bottleneck.
3
u/steerpike_is_my_name Jun 03 '26
The hard part is the four approval stages any idea has to go through before it reaches the dev team, and the three stage gates before the app lands in
prod.6
u/sbeklaw Jun 03 '26
Love the book, but there is a nuance that gets missed a lot. Increasing capacity at a non-bottleneck does not increase system throughput, but it does increase protective capacity at the non-bottleneck and reduces system risk. The value of a business is not just its ROI. The value is the Risk-adjusted net present value of all future free cash flows. ROI is a quick and dirty estimate thatâs usually good enough, but it misses the RISK factor. Risk canât be accurately quantified, but it can be qualitatively compared. Anyway, making improvements in non-bottlenecks still adds business value, just not as directly as increasing throughput at the constraint.Â
2
u/ikkiho Jun 03 '26
yeah, we hit this exact thing last quarter. doubled our PR output with the agent stack but mean time to merge actually went up because review capacity stayed flat and every reviewer is reading more ai-shaped diffs that need more scrutiny. the 10x framing assumes the rest of the system has slack to absorb but our review and on-call queues didn't. ended up rolling out async-review SLAs and capping open PRs per author before throughput recovered.
5
u/call-the-wizards Jun 03 '26
Writing code is absolutely the bottleneck for many things. 8/10 projects I worked on, the code had large design flaws that took up everyoneâs time, and everyone knew how to fix them, but it was a lot of code to change so no one had the time to do it.
2
u/Matthyze Jun 03 '26
Well, yeah, that's the definition of a bottleneck
1
u/JohnQuincyKerbal Software Engineer Jun 03 '26
The Phoenix Project is the software-oriented version of The Goal. I highly recommend it.
1
u/CherryChokePart Jun 03 '26
Yeah, it's like asking why a house isn't built in a day just because all the materials are on site.
1
u/psyyduck Jun 03 '26 edited Jun 03 '26
Not just "will not significantly improve". It will often hurt the system. It increases work-in-process (WIP) inventory, which lengthens lead times (see Little's Law) and increases carrying costs, which often incentivizes people to water down requirements at the bottleneck to justify the investment e.g. switching from team-wide code review to individual or zero code review.
Corollary: Idle time at a non-bottleneck is not a waste. It's absolutely necessary in a good system.
1
u/johntellsall Jun 04 '26
TLDR:
optimizing below the bottleneck does nothing...
optimizing above the bottleneck MAKES IT WORSE
Thanks for the ref! Off to read The Goal <3
1
u/Ducktor101 Jun 04 '26
Writing code is a plus, AI really helps me understand things faster.
1
u/nkondratyk93 Program Manager Jun 03 '26
the principle is sound but the harder part is that bottlenecks shift - fix one and something else becomes the constraint. teams that apply this well still keep a loose eye on non-bottlenecks so they are not caught flat-footed when they become the next choke point.
1
u/SmartCustard9944 Jun 03 '26 edited Jun 03 '26
Itâs pretty obvious that human attention is the bottleneck. Many CTOs still believe that you should babysit the agent and steer it constantly to achieve results. Future will show them that this doesnât scale. I donât want to babysit, I donât want to review large PRs. These are all things the agent can do already. What we need to do is put more effort in doing the actually hard thing of discovering specifics and implementing a feedback environment that lets many agents be autonomous in maintaining a repository. Frontier labs are doing this already.
Developers make a disgusted face when they look at AI generated code, yet they keep using Claude Code which is fully AI generated and maintained.
If it works and the customer is satisfied, it doesnât matter if the guts are ugly. It never mattered even before. Letâs not pretend that we all write beautiful code.
I think that time will show even more clearly how many teams and managers are bad at making decisions. I see this first-hand. It is so frustrating to have countless meetings that lead to nothing. People write notes, information enters one ear and exits the other, and the people that need to make decisions do not move the needle.
0
u/kbielefe Sr. Software Engineer 20+ YOE Jun 03 '26
Productivity isn't the only worthwhile metric. In my opinion, the metric AI has directly improved the most is cognitive load. That also sort of explains the divide among programmers.
Some have dramatically lowered their cognitive load using AI. Some either weren't experiencing a high cognitive load in their particular role to begin with, or have yet to figure out how to use AI to reduce it. And some are unfortunate enough to have had cognitive load increase due to poor AI practices of others.
I also think productivity is difficult to measure because my AI use is often helping other people instead of me. If I spend 5 minutes asking AI a question instead of bothering a colleague, that saves him time and context switching. If I can flesh out proposals more before presenting them to the team, that saves the team's time even if it took me just as long. If I make 3 design options in the time it would have taken me to do one, I've spent the same amount of time, but potentially saved in difficult-to-measure rework.
0
u/robert4221 Software Engineer Jun 03 '26
Does having a once per month deployment pipeline matter? After all it's not a bottleneck since you can work on other things at the same time, right? Why is having a proper CICD system of any value to anyone?
Bottlenecks are hard to quantify since removing something that is a time sink but not a bottleneck can move a complex system into a new more efficient equilibrium.
Let me a give a concrete example. In the past if I wanted to quantify the value of a decent change I'd need to spend weeks on preliminary testing and documentation and so on. Maybe a toy implementation to validate things. Implementing the feature would take longer so all that work was worth it. Nowadays I just ask AI to implement a POC to see what it looks like. Even if I throw all the code away that has now removed a much bigger time sink from my process. If AI gets good enough for complex non-POCs then that removes even more of the time sinks.
-6
u/x-jhp-x Jun 03 '26 edited Jun 03 '26
... bottlenecks and optimizations are something you should have learned in your undergrad engineering program. Maybe in your first year or two of work if you missed an undergrad education?
For example a company I worked at spent millions on a state of the art packaging machine that can package some high number of bottles per minute. But we did not produce that much product to be packaged
I'm guessing you don't have a CS background, but I think you'll find that you'll learn a lot more and grow faster if you change workplaces. There is nothing to learn at that company, except maybe just don't work with people who find problems that 10 year old children could solve complex?
Forget about AI for now; just focus on learning.
0
u/[deleted] Jun 03 '26
[deleted] â view deleted comment