Hacker News new | ask | show | jobs
by someguynamedq 72 days ago
> AI isn't good at software maintainability

We're a few years into a new technology that is still improving. This is a point-in-time critique.

6 comments

For this to work long-term there has to be continuous improvement.

My belief is that paying off tech debt requires a better model than creating it. At the same time there are people who will create tech debt no matter the tool.

Should the models stop improving, the debt will pile up.

I did hear an argument a couple times saying "this is messy now but a newer model will come and clean this up in the future", hope it's true.
I predict there's always going to be a Wirth's law or Peter principle of slopcoding — it will always be easier to tack on a new feature than to understand a whole system and clean it up.

Alternatively stated: codebases will expand to the limit of an organization's ability to manage them, so the equilibrium will remain at the point of near, but not total, incomprehensibility.

It's not true, a newer model can do better to clean things up but you can't brute force engineer your way out of a shit design.
It's definitely true. I didn't use AI at all until this January because the code it wrote was too bad. Now I'm comfortably using AI for less important programming tasks and it's okay as long as you steer it carefully. I see no reason why it wouldn't get better up to a point that AI written code is better than what any human programmer could produce. It's also constantly getting better at refactoring.
I don't see context size improving.

It was mostly 256k, then it went to 1M and now it has stalled there.

Also AI is fine at creating maintainable software, you just have to nag it to and not accept its first attempt at it, and subject it to peer review. This is plenty similar to human developers.
It creates maintainable looking code that will not stand the test of time.
Some humans don't even manage to do that.
Yeah and they’re typically fired for incompetence, or their startup fails, or their product flounders but that’s okay because the company doesn’t need the product to actually be successful.

Meanwhile, the people who work on actual products that matter have a valid criticism that can’t be dismissed with “some humans don’t even manage to do that.”

The dirty secret is there's a lot of people employed to do things that are not "products that matter" according to your definition.
Yes, including myself in the past. I’m grateful to be out of that situation.

Probably a vast majority of software written never actually gets interacted with by a user. A vast majority of VC-funded software probably never gets interacted with by a user.

Feels pretty great to work on a product that actually has a user, and that user isn’t actually the product (and that user isn’t being manipulated or exploited). Tiny, tiny minority of the software industry I work in.

If you would fire all incompetent [1] software developers, there would be almost nobody left.

[1] There is probably a more fitting word, I am just reusing incompetence here, but that is not a really fitting description, I think. I would maybe say carelessness or something like that, but a single word is not going to capture the issue accurately.

Same with pretty much any other profession. Hunting for reliable and reasonably-priced HVAC, plumbing, handymen, etc. is a part-time job.

But the point OP was trying to make is that because LLM harnesses output code that is at least better than the worst, say, 20% of developers then we should be fine with it. Meanwhile, I’ve worked in shops where you have to be way above the worst 20% in order to keep your job or even be hired in the first place. And it isn’t some crazy lose-sleep-over-it, stressful requirement. It’s just that literally if you’re not good enough your work will be identified as a liability and you’ll be let go. It’s only happened to 3 people fwiw.

I think crappy code that looks like crap, is better than good looking code that is actually crap if someone cares to look..at least it can be fixed early.

LLMs commit crap, and read the "pattern" back, and consider it as gospel and repeat it all across the code base...

Why would I want to nag it and do all that when I could just do it correctly myself in the first place?
That's like asking why senior/staff engineers tend to review more code than write themselves. In certain environments there's a scaling constraint, and you can generally have wider impact through oversite than typing at a keyboard yourself. That's not to say one is more worthy of your time or not, just that it's not unique to AI.

Generally though, you are also investing your time into leveling up junior engineers to take over responsibilities from you. I just never really see that happening with AI. Even as it gets "better" technically, there's no real growth pattern to its work and it doesn't understand ownership or responsibility.

But if scaling isn't a problem, then sure just write it yourself.

Same reason you’d hire engineers rather than expecting the CTO to do all the programming?

It doesn’t take much effort to setup cross-agent reviews and automatic reviews for slop and accretion, while directing design decision questions back to the human to consider. I have had a considerable increase in throughput of code that I designed and made the important decisions about, and that I’m pleased with the quality of, although as always in these discussions, someone will be a long shortly to tell me that that implies I must be a terrible engineer.

But people don't use AI the way they use human beings because it's a technology and it's being consistently overhyped by its own makers as superhuman intelligence
Nobody does this though, that’s the problem. If most people don’t use a tool the “correct way” at what point do we blame the tool?

For starters, LLM’s need to stop being our friends. But that won’t happen because the dopamine loop is baked in on purpose.

2 years away:tm:
>still improving

Mostly stalled now...

Expecting big progress to be made every month is a bit silly.

If the models are as capable in a years time as they are today you could say they have stalled.

Improvement can still be happening, and it can be happening slower than it was a year ago. Both can be true.

And the observation that it's happening slower than it was means, not that it's stalled, but at least that it's not exponential anymore. The exponential phase is already over. That has implications for where we think the plateau is likely to be.