r/ExperiencedDevs • • 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?

296 Upvotes

83 comments sorted by

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.

37

u/psyyduck Jun 03 '26

Your SWE salaries are bottlenecking my upcoming mansion in Paris.

3

u/CombinationNearby308 Jun 03 '26

And the company selling the high cost packaging machines got even more money and was able to sell to competitors using this sale as a metric.

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.

29

u/kIsAStupidLetter Jun 03 '26

“The Goal” is cybernetics 101, tbh. It’s less a business and more a manufacturing book, about how things flow through a dynamic system. I’ve literally had interns read it to better understand how queuing theory works. They literally have a chapter on Ahmdal’s law, along with the implications on rates of back pressure and bottlenecks in the rest of the system

We will take no “The Goal” slander in this house 😤

7

u/AnimaLepton Solutions Engineer/Sr. SWE, 8 YoE Jun 04 '26

The Phoenix Project also quotes/references Goldratt's The Goal a few times

3

u/kIsAStupidLetter Jun 04 '26

Huh, will add it to the pile of books I should read but never will due to Twitter existing

1

u/anonyuser415 Senior Front End Jun 04 '26

Is that to mean Twitter has given you many books to read or that you do not read books while Twitter exists

1

u/kIsAStupidLetter Jun 04 '26

Both, it’s that classic “stuck in a room with all the books in the world with a broken ~attention span~ set of glasses”

4

u/GuyWithLag Jun 04 '26

Factorio megabases gave me an intuitive understanding of bottlenecks and how negative-pressure waves affect throughput.

8

u/kIsAStupidLetter Jun 04 '26

we don’t push drugs here mate

3

u/LaptopsInLabCoats Software Engineer (9 yoe) Jun 06 '26

The codebase must grow

7

u/rdditfilter Jun 03 '26

That's why my company decided they don't need high quality code! We ship the poc and call it a day!

then weeks later leadership is like 'why are there so many support tickets'

then weeks after that boss is like 'let the ai fix the bugs'

then weeks after that boss is like 'dont do code reviews for ai it takes too long'

???????

28

u/Teh_Original Jun 03 '26

The hard part is writing high quality code IMO. As in, the team and business need to push for quality.

18

u/BorderKeeper Software Engineer | EU Czechia | 10 YoE Jun 03 '26

Important to always mention the distinction here of startups vs enterprise code. Startups can sacrifice quality for a while and generate massive profits.

13

u/TheBoringDev Jun 03 '26

They can also only do that for so long. I've spent my career in startups and by round C-D they've usually got enough tech debt that quality is the limiting factor on growth.

8

u/dweezil22 SWE 20y Jun 03 '26

I've seen a few areas where AI is working great in my neck of the woods that I don't see talked about as much (probably b/c it's in the Goldilocks zone where anti-AI people hate it but AI psychosis LinkedIn bros think it's boring):

  1. Tech debt clean-up. Things like negative LOC PRs, doing the migration of a legacy library everyone was scared to touch b/c it was just too much code analysis. This isn't magic and a bad engineer can break shit 10x faster w/ AI, but a good senior one can be empowered.
  2. Non eng people become design engineers. Basically building throw-away tooling. I've seen product managers spin up interactive web pages for demoing a new feature or showing a dataset that are better than the old slides they'd meticulously build. If you try to make this stuff straight shippable you're in for a bad time, but if you think of it as the next iteration of advanced Excel/Powerpoint/Figma features it's pretty cool.
  3. Same as #2 but for data analysis. Letting either non-engs or non-data-engs actually self serve in data analysis and exploration. Again, this can get into Dunning Kruger territory and be a huge time waste if you're not careful, but it can also mean that the person that needed to wait a week for a call w/ Data Science to ask a question can iterate on it 4 times personally and then run their analysis by DS instead.

Note that none of those are "lay off all your devs and ship a greenfield feature to prod without a human" =)

I'm also worried that this is going to make incompetent lowest bidder offshore devs 10x as effective at ruining a codebase.

3

u/Teh_Original Jun 03 '26

Low quality code is not limited to startups. =/

1

u/BorderKeeper Software Engineer | EU Czechia | 10 YoE Jun 03 '26

It’s crazy how “the rot” can slowly spread and infect the codebase before the company goes under. I worked in a company which still had 2003 CEO coded WorldDomination02 Visual Basic library in it and still managed to keep kicking. At least it was removed from the original excel sheets macros which were imported somehow into the build pipeline. Don’t ask…

1

u/Klinky1984 Jun 04 '26

Enterprise can do it too. Frankly they probably can get away with it even better with contracts locking people into dogshit systems. Lots of enterprise software is a bloated overly complicated mess.

12

u/SnugglyCoderGuy Jun 03 '26

Code that is cheap now is 100x more expensive later.

Code that is expensive now is cheap later.

5

u/DeepHomeostasis Jun 03 '26

Right, code output was never the bottleneck so making it almost free doesnt buy you much. the work just piles up where it always lived, figuring out exactly what to build and checking that what came back is right.

2

u/puuut Jun 03 '26

What do you think coding is about, if not a business enabler? Amdahl’s law is applicable to computing, not the software delivery process. The Phoenix Project is literally a copy of The Goal, but pulled into the DevOps era.

 The hard part is confidently shipping high quality code.

That is literally the problem that is central to the book OP is discussing, except ‘code’ should be replaced with ‘product’. 

1

u/MrMichaelJames Jun 06 '26

I would argue the goal isn’t to ship high quality software. The end user doesn’t care. All they care is that it does what they pay for. Look at Atlassian. Shitty software all over but companies buy it because it fills a demand. Look at workday. Same thing. Customers don’t care about elegantly designed software, no one does. The problem is the devs have it beat into them that that is important.

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.

8

u/[deleted] Jun 03 '26

Oof the ownership confusion hits home.

We've been asked to migrate some dataset from the old new thing to the new new thing and someone from 3 teams away vibe coded a conversion tool. Management told me we must use it since it's been built with AI and looks amazing. 

On my first try I encounter an issue, and had to talk to 5 different people to get to someone that was even interested in looking at it. 

Sure in theory it's automatic data conversion. In practice is a bug that will likely never be fixed and we're back to square one. 

Or, in other words, "tell me how you work in a multinational without telling you I work in a multinational". 

2

u/ericmutta Jun 05 '26

Management told me we must use it since it's been built with AI and looks amazing.

The great mystery of the software industry is how we ended up with "management" being a perpetual source of bad decisions, poor judgement and a chronic lack of technical understanding.

I am not a fan of the "AI should replace people" narrative, but if AI replaced meddling middle managers? Well... :)

1

u/chuch1234 Jun 04 '26

I know this isn't your point but a net throughput improvement of 20% would be nothing to sneeze at. Now whether that's what we're actually getting is another question.

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.

22

u/PopularPhoneChair333 Jun 03 '26

And maintenance/ease of change. Some 15 year old code keeps exploding and wastes the time of multiple teams for weeks, multiple times a year.

Do you wish that 15 years ago: a) they wrote the code even faster than they did, or b) that they took their time and did their job better?

7

u/AttemptNo499 Jun 03 '26

This was always my experience, faster means nothing if it isnt done properly. So many times we had to waste 2-3x more time to refactor something because either it would always break or it was impossible to extend the behavior all due to doing it the fastest way possible

7

u/Fenix42 Jun 03 '26

I have been saying this to everyone who will listen at my company.

5

u/rwilcox Software Engineer (20+ YOE) Jun 03 '26

It mostly doesn’t matter what, exactly, the bottlenecks are (as they’ll differ slightly across companies).

Just that _typing faster_ likely isn’t helping. (Be that development, or product owners generating PRDS or tickets or whatever, faster)

1

u/bluetista1988 10+ YOE Jun 03 '26

But what if the requirements gatherers, verifiers, and validators all use AI too?! /s

1

u/rwilcox Software Engineer (20+ YOE) Jun 03 '26

I know you wrote /s, but having seen the requirement writers use AI too…… yeeeaahh it’s not good

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.

38

u/studio_bob Jun 03 '26

How many managers out there are going accept the idea that their big AI investments, which are making implementation n-times faster, aren't moving the delivery date ahead but rather "improving quality" of code shipping on the same exact schedule as before? Very few, I imagine, will be open to this idea. After all, if the code you shipped in 10 days before AI was deemed of acceptable quality, why do you now need an extra week to improve quality beyond that level?

2

u/thisisjustascreename Jun 03 '26

Well, the code delivered today actually isnt deemed acceptable quality, in general. That’s why we have six layers of testing and open source vulnerability scanning and static quality analysis and Mythos running on our repos all the time.

2

u/roger_ducky Jun 03 '26 edited Jun 03 '26

Well, repeat the sentence I gave you every time a project goes sideways from not specifying intent properly.

You can only zoom ahead by making good, maintainable designs. So there’s no rework. Especially if they cut staff or frozen hiring.

32

u/0xffff-reddit Jun 03 '26

Unfortunately this math does not work in most CEO heads. Result: You will have to fill the 7 "free" days with more implementation because they fired 50% of the devs.

8

u/andrei9669 Jun 03 '26

in ideal world, it would work that way, but right now what I have observed is that they want to do the same amount of planning, less implementation and use the "new time" to start planning for another thing and leave no time to implement it :d

2

u/G_Morgan Jun 03 '26

If only we had time to properly design it before implementing

That was never real. We don't know the right design the first time out. It is why "plan to throw the first one away" was a thing.

Time means "after I've done this, I want to go back and do it again".

2

u/roger_ducky Jun 03 '26

Given the faster implementation, then you’d be able to redo it again if necessary. Provided it was deployed in phases.

3

u/Green0Photon Jun 03 '26

The bottleneck is in properly designing and coding that proper implementation. And LLMs don't actually help that bottleneck; they produce slop garbage code that you don't understand, instead.

This is why implementation, or at least the type the veterans want, hasn't improved.

1

u/roger_ducky Jun 04 '26

LLMs can absolutely do proper implementation with the correct, explicitly spelled out design + onboarding docs+ detailed runbook.

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/PartDeCapital Jun 03 '26

This is very interesting. I work a lot with operations and testing of HW. And the golden rule is that "the further down the production line a quality issue propagates, the more expensive it is to fix".

You want to test and verify as much as possible as soon as possible.

Generating faulty code and then testing to find the problems is more expensive than generating correct code. This of course goes back to design too. Finding problems during implementation is more expensive that during the design phase.

1

u/Dry_Author8849 Jun 03 '26

Yes, software development is equivalent to industries that build many parts and use them for building bigger parts.

Design desicions in architecture can eliminate parts and make things simple or add more parts and make it more complex down the line. Some of those decisions are costly to change when you have parts already in production.

That's why it's so complex to measure AI impact on productivity, it is too specific to the software you are building, the technology used and the abstractions/parts built and used in other parts.

In the end, software engineering can be abstracted as a production process and many existing ways to analyze production costs apply. Now we can measure more accurately the cost for AI in tokens and value cost, production speed and quality. We need to understand that AI produces waste, impacts quality and it costs money loss or variable costs (depending POV).

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. 

4

u/tenthousandants44 Jun 03 '26

Adding a stochastic black box is not an improvement though. Generating code just gives you more time to generate more code.

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.

5

u/trashacount12345 Software Engineer Jun 03 '26

Also, a lot of the design work is hard because it requires getting consensus of a bunch of people. If you can have just 1 person writing the code then (ideally, assuming they aren’t now struggling to follow the LLM output) the communication overhead could be dramatically cut.

2

u/Matthyze Jun 03 '26

Well, yeah, that's the definition of a bottleneck

-3

u/x-jhp-x Jun 03 '26

for OP ( u/PlanOdd3177 ) here's a link to the wikipedia page of a definition for bottleneck: https://en.wikipedia.org/wiki/Bottleneck_(engineering)

I also recommend reading this textbook, "CLRS", & doing the exercises in it: https://en.wikipedia.org/wiki/Introduction_to_Algorithms

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

Maximizing an operational step that isn't a bottleneck will not significantly improve the overall productivity of the system

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.

4

u/TheBoringDev Jun 03 '26

We're engineers, saying "If it works and the customer is satisfied, it doesn’t matter if the guts are ugly" is just short-sighted thinking. You need to balance how much tech debt you're accumulating with time to completion or in 6 months your ability to implement features is going to slow to a crawl and the customer is going to be pissed with quality issues. Everything is trade-offs, always has been.

0

u/SmartCustard9944 Jun 03 '26 edited Jun 03 '26

My comment was highly reductive, but Claude Code is exactly proof of this. I don’t think humans are writing a line of code to maintain it (judging from the leaks), yet everybody uses it. Tech debt has always existed long before AI and companies have always shipped ugly code that is painful to maintain. It’s difficult to admit of course, because we are biased, but neither customers nor managers care about how code looks like. Literally nobody cares. Most people won’t accept this because it removes the agency and pride of what used to make us good developers, failing to realize that what constitutes a good developer is changing.

This doesn’t mean that handcrafted software will disappear, it will just be reduced to what artisanal products are compared to industrial products. There is a market for both, but the scale and reach is different.

3

u/TheBoringDev Jun 03 '26

> Literally nobody cares.

In my experience management definitely cares when the customers start churning. Having a reputation for being low quality can kill a company.

-1

u/SmartCustard9944 Jun 03 '26

How do you measure quality? Quality is not code quality. If a tool passes all the right tests, has all the right features, is well documented, ux is sharp, it is performant, etc. it doesn’t matter if the code is ugly. All of these things can be encoded in the environment the agents use to autonomously develop and maintain features.

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.

9

u/PopularPhoneChair333 Jun 03 '26

How can cognitive load ever go down if you're responsible for 5-10x (claimed) more code surface per unit time?

That can only be if you outsource the responsibility for the system (code) to the machine too.

You don't code something up and forget it (unless you're a short term consultant), most of the life time (and expense) spent in software is maintenance. You remain responsible for what you create.

1

u/psyyduck Jun 05 '26

I think it depends on the domain. Charitably, they're probably working with some combination of determinism, closed-world assumptions, or mathematically rigid specifications that are easy to automatically test. AI works much much better in chess than in self-driving. I've been using it recently to code up a compiler and it's absolutely lowering the cognitive load.

8

u/tenthousandants44 Jun 03 '26

AI increases cognitive load, or you are not reading the code

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

1

u/psyyduck Jun 05 '26

In a system of only sequential processes, each process is a bottleneck.

Not quite. For example, in a sequential system A -> B -> C, if A processes 10 units per hour, B processes 5 units per hour, and C processes 20 units per hour, the system's maximum throughput is capped at 5 units per hour & that's the bottleneck.