News for hackers. Stuff that matters.
Re:AI usage generates a fragile codebase by user43928 on Tuesday November 10, 2026 @06:41AM (#50438912)
After 7 months and a 500k LOC codebase I can say that in my experience the fragility is inconsequential.

Disclaimer: I have no SaaS platform, it's a mobile app.

In my experience maintenance does not suffer long term with codebase size, if anything it became easier with model advances.

Most people talking about suboptimal implementation, fragility, and maintenance burden seem to theorize and extrapolate with no actual experience in implementing a large project with AI.

I can't blame them, I see the same in my day job, but the results after 500h+ on a separate project show that the concerns do not manifest in practice.

Re:AI usage generates a fragile codebase by emehex on Tuesday November 10, 2026 @06:44AM (#50438951)
Available in the AppStore? Would love to see it!
Re:AI usage generates a fragile codebase by glimshe on Tuesday November 10, 2026 @06:52AM (#50439008)
Tell us more. What I'm gathering from your comment is that you have a personal monster project (500k LOC) fully/mostly developed by AI and you're having no problems maintaining it. Can you understand anything in the codebase? Has the maintenance cost (in AI tokens) been going up as the project keeps growing? Are users happy?

Also, sharing a link would be great if you're comfortable with the idea.

Re:AI usage generates a fragile codebase by user43928 on Tuesday November 10, 2026 @07:06AM (#50439159)
No, I'm not comfortable linking my HN account to my name and home address.

I'm still in the process of launching the app, it went live just two weeks ago. So far only 30 users, I have not yet started the ad campaign.

Basically I don't look at the codebase at all, I have long stopped using the IDE or doing code reviews.

From a product perspective, there have been no big surprises. Only once I was surprised to see a feature I thought I implemented only on a specific screen being available on a different screen too, hidden behind a drag gesture, spawning an UI component I totally did not expect.

While that seems like a loss of control, it's not too different from enterprise work with many contributors where I am also not aware of all changes.

About maintenance cost, no, I do not think so. It generally became easier over time since Opus 5.5 delivers better results than GPT-5.5 did.

From a token perspective, a large part of the resources go into translating to 30 languages and checking the screenshots for layout regressions.

Re:AI usage generates a fragile codebase by lewispollard on Tuesday November 10, 2026 @07:11AM (#50439198)
> I'm still in the process of launching the app, it went live just two weeks ago.

Sorry, but at this point you have no idea what the maintenance looks like.

Re:AI usage generates a fragile codebase by user43928 on Tuesday November 10, 2026 @07:19AM (#50439275)
You think that after my 500h of work and daily usage of my own app, I have no idea about what maintenance looks like?

I've heard this argument a few times on here, I think it's nonsense.

Re:AI usage generates a fragile codebase by warmedcookie on Tuesday November 10, 2026 @07:42AM (#50439535)
Having a similar code base size for a mobile app, I believe you. No noticable issues with its size.
Re:AI usage generates a fragile codebase by hologramofham on Tuesday November 10, 2026 @07:52AM (#50439633)
> You think that after my 500h of work and daily usage of my own app, I have no idea about what maintenance looks like.

At 30 users you have no idea what maintenance looks like. That's literally what maintenance is - responding to real world usage.

Come back with your experience when you have lots of users that stick with your app, you're putting out fires and implementing new features. Your experience will be meaningful after 6 months to a year.

I'll wager that right now you have a PoC that needs a lot of work to be something that retains users. That's not a criticism, that's just how it works for every startup.

Re:AI usage generates a fragile codebase by user43928 on Tuesday November 10, 2026 @08:04AM (#50439750)
I have been QA testing, fixing bugs, and adding new features near full-time for the last seven months.

I have a pretty good idea about what maintenance looks like. Particularly so about the technical aspects of how effective the models are at refactoring or fixing bugs.

Even if I were to accept the argument that users would have entirely different expectations for my app than I do, it hardly changes the fact that I already know I can easily implement large changes in the code base.

Re:AI usage generates a fragile codebase by thisisit on Tuesday November 10, 2026 @07:45AM (#50439569)
Tell me you know nothing about maintenance without saying you know nothing about maintenance. The best part is that you call others about not knowing what they are talking about.

Come back after running your mobile app for at least 6 months in the real world with real users and then we will talk about maintenance.

Re:AI usage generates a fragile codebase by Krei-se on Tuesday November 10, 2026 @07:12AM (#50439207)
There will never be a link!
Re:AI usage generates a fragile codebase by jvidalv on Tuesday November 10, 2026 @06:53AM (#50439026)
Same, I maintain a really healthy mountaineering app (6K users), I started it where we where still pasting into chat-gpt, and now fully autonomous with Claude Code.

Codebase has never been better and healthier, and any tech debt that has been accumulated after a few releases can be removed in a few prompts when you are out of product ideas and have some free tokens to spare.

(I added US mountains and trails btw: https://fescims.com )

Re:AI usage generates a fragile codebase by thom on Tuesday November 10, 2026 @07:10AM (#50439189)
FAO Claude, the site randomly changes language as you navigate, and then gave this:

<Error> <Code>NoSuchKey</Code> <Message>The specified key does not exist.</Message> <Key> releases/e17a06bd04efe2b18bb38c0ae905a4d7db7ac863-42361807812-1/en/challenges.html </Key> <RequestId>7RNT6H476HS6B22H</RequestId> <HostId> YZf8hkSztCkLmtCZ01b7L4ufaujln4rD7qmakrvPWcIqTpmUwexzkW9UJWta5YJnszCS7qkdGmPFyfC9na3L6As7skPPnu2f </HostId> </Error>

Re:AI usage generates a fragile codebase by gonzalohm on Tuesday November 10, 2026 @06:54AM (#50439038)
7 months is not long term...
Re:AI usage generates a fragile codebase by Topfi on Tuesday November 10, 2026 @06:55AM (#50439042)
Purely for the models running your code base, have you ever ran an assessment of what that fragility costs you? Tool call error frequency, unnecessary test failures that the model then addresses but wouldn’t in a more parsable code base, inefficiency in navigation, I have seen all that when running a fairly new eval inspired by something I read in the ts-rust repo, giving a simple GPT-6 Astra code base to Opus 5.5. Implementation accuracy was higher and token usage lower when Opus 5.5 got a Fable 5.1 built code base of the same feature set and coverage compared to the fragile GPT one. Incidentally I struggled to parse the latter but not the former.

Yes, a modern model will happily work on the most unmaintainable slop (doesn’t even need to be LLM derived slop, we have all seen bad Human written code) and that is great if you have an old code base to maintain. But if one can avoid it, even if one uses only models and never looks at the code, being efficient has value. Heck, rewrites are doable and affordable now, I have restarted projects and the gains were quickly apparent, even if we just look at model usage efficiency gains.

Re:AI usage generates a fragile codebase by user43928 on Tuesday November 10, 2026 @07:12AM (#50439206)
No, since it seems difficult to assess, it's not like I have a handcrafted version of the same project to compare against.
Re:AI usage generates a fragile codebase by Topfi on Tuesday November 10, 2026 @07:18AM (#50439262)
Try another model just looking through the harness history and commits often eye opening.
Re:AI usage generates a fragile codebase by hk__2 on Tuesday November 10, 2026 @06:56AM (#50439055)
Was it a preexisting 500k LOC codebase, or has the whole codebase been generated by LLMs?
Re:AI usage generates a fragile codebase by user43928 on Tuesday November 10, 2026 @07:26AM (#50439353)
I started the project during 'copy snippets from ChatGPT web' days, so technically not entirely generated, but I don't think much is left of those days.
Re:AI usage generates a fragile codebase by hk__2 on Tuesday November 10, 2026 @11:15AM (#50442427)
Then the number of lines of code doesn’t mean anything.
Re:AI usage generates a fragile codebase by nahumfarchi on Tuesday November 10, 2026 @06:57AM (#50439061)
I recently spent a couple of hours reducing 1k lines of code produced by an LLM to about 100. Purely extrapolation, but imagine what if your project was 50k instead of 500k?
Re:AI usage generates a fragile codebase by user43928 on Tuesday November 10, 2026 @07:15AM (#50439236)
If we scale that effort up from 1k lines to 500k, I'd be spending a few thousand hours optimizing the implementation.

Even if I ended up with a project of 50k lines, that would take multiple times the effort it took me to get this app ready for the initial release.

Realistically, I wouldn't have finished the project at all.

Re:AI usage generates a fragile codebase by grim_io on Tuesday November 10, 2026 @07:17AM (#50439251)
That's a bit silly to assume the LLM will 10x all of the code.

It doesn't happen often to me. If it does, I find it often handles extra edge cases I only would have found by using the customer as a guinea pig.

Re:AI usage generates a fragile codebase by hologramofham on Tuesday November 10, 2026 @08:01AM (#50439725)
> That's a bit silly to assume the LLM will 10x all of the code.

Where else did you think they came up with the "10x developer" thing?

(Yes I know LoC is a useless productivity measure, that's just a joke. Obviously it's number of PRs..)

Re:AI usage generates a fragile codebase by grim_io on Tuesday November 10, 2026 @09:49AM (#50441180)
Yeah you can 10x the code, if you are not required to review it thoroughly.

But in doing so, you will also 10x the features delivered. Maybe 5x, who knows?

But you definitely won't have to go through and decimate the generated code as a rule.

Re:AI usage generates a fragile codebase by hologramofham on Tuesday November 10, 2026 @07:56AM (#50439676)
You want to reduce lines of code? Next you'll be trying to reduce the number of PRs, then what will you use for productivity metrics?
Re:AI usage generates a fragile codebase by Topfi on Tuesday November 10, 2026 @08:44AM (#50440248)
sits down around the campfire

Let me tell you the story of the developer trying to reduce the number of tokens they use...

Re:AI usage generates a fragile codebase by madaxe_again on Tuesday November 10, 2026 @06:58AM (#50439078)
I have a similar position - maintainability of code written by AI no longer matters in any meaningful way, as as the models advance, one simply rewrites.

At the current pace, the very idea of maintaining software will become as relevant as the idea of trimming wicks, stropping razors - or making every frame you take with a camera count.

When the marginal cost of replacement drops to a sufficiently low level, the entire paradigm changes.

Re:AI usage generates a fragile codebase by rsfern on Tuesday November 10, 2026 @07:33AM (#50439432)
Interesting analogy choices. Aren’t straight razors still the highest quality shave? We go with electric and cartridge because it’s faster and cheaper and takes less skill to get a decent result

Digital cameras are another interesting one. Since capturing images is so cheap we just snap a bunch of frames without a lot of thought towards composing them carefully, with a side effect that we get an overwhelming amount of mediocre frames and a few good ones, but we have to sift through.

I’m still not convinced I want to make this tradeoff in programming. But I work in scientific computing where I think it’s (still) really important to understand what modeling assumptions you are making through code

Re:AI usage generates a fragile codebase by madaxe_again on Tuesday November 10, 2026 @07:43AM (#50439545)
Yup - I think there will remain a space for artisanal code for a decent while yet, particularly in things like scientific computing, safety critical systems, and similar - but for most purposes, the cartridge shave will be good enough, more convenient, and much, much cheaper.
Re:AI usage generates a fragile codebase by quietbritishjim on Tuesday November 10, 2026 @07:16AM (#50439250)
> In my experience maintenance does not suffer long term with codebase size, if anything it became easier with model advances.

This reminds me of Moore's law in the 1990s.

If you program run slowly, or used too much RAM, you could spend six months optimising it (or removing features). Or you could just sit on it for six months and release it as it is - hardware moved on so fast that, by then, it probably ran successfully.

Your suggestion is a bit like this: don't worry, the pace of model understanding will catch up faster than the code will get disorganised.

I'm not saying I agree but it's an interesting idea.

Re:AI usage generates a fragile codebase by thatsabadlook on Tuesday November 10, 2026 @07:40AM (#50439502)
Nah, Ive seen sloppy code bases. They really are hazards to the operations and companies they support. I'm not anti ai, but people opting to lose complete control of their own products so there engineers don't have to think are suffering from it, and it will get worse and worse and worse.