Hacker News new | ask | show | jobs
by jasode 24 days ago
I don't disagree with the article but it may give some readers the impression that pre-AI hand-written code wasn't fragile.

Here's the famous commentary about Oracle RDBMS codebase of 25 million lines: https://news.ycombinator.com/item?id=18442941

Every big company codebase with millions of lines devolves into a similar state. The small codebase starts with clean conceptual integrity. It then inevitably decays into incomprehensible spaghetti code as more people are added to it. Various reasons for it including the later devs caring less about the code than the initial team of devs, deadlines, avoiding refactoring because of fear about breaking things, etc.

If you don't want AI to create fragile code, you have to apply the same quality gates that would have been applied to pre-AI hand-written code to keep everything clean. Most companies don't do that.

3 comments

> Here's the famous commentary about Oracle RDBMS codebase of 25 million lines: https://news.ycombinator.com/item?id=18442941

This is actually a perfect depiction of what "bug-driven development" looks like, which is basically where the current generation of AI-only codebases are headed.

> Every big company codebase with millions of lines devolves into a similar state.

Not really? A lot of companies have comparable codebases that are kept in check.

Service-oriented architecture helps at this scale by forcibly creating boundaries.

So the argument is that because before AI some code was bad it's ok that now all code is bad?
No I think the argument is more like… on average the code AI produces is better than what the majority of developers were producing before AI. Don’t forget HN crowd is the exception. The people that post here are like 1% of total programmers that like this as more than just a job. The industry at large, 99%, is just people doing their job writing average to poor code and going home. AI does that better now.
I doubt we're really the exception, and I think a good developer from the before times can still guide AI to produce a reasonably maintainable codebase over time. Most likely, a bad developer from the before times will still be able to guide AI to produce a mess. But yeah. It seems to me that the latest models produce above average code, based on the messes I've seen (and helped produce) over the last 25 years or so. It's not as good as what I'd build by hand these days, but it's good enough, when in the right hands.
There was a time we all on HN agreed that contracting out the code was a bad idea. That ownership of the code was important, and if you sent your code out to a one off contractor it would come back as unmaintainable liability.

The shift in thinking leads me to believe that the real reason HN hated contracting out the code was the fact that you had to pay the contractors for their work.

There is also the possibility that a lot of HN hated outsourcing to contractors for the same reason a lot of HN hates AI: they were taking our jobs ;-)

And I think the outcome will be the same in both cases: we figure out how to outsource effectively. In fact, many of the same strategies we developed then are applicable now.

HN doesn't hate AI.
Not uniformly of course, no large community is that homogeneous in their opinions, but if you look at the stories and comments that get upvoted more than others, they tend to be heavily on the negative side. Heck TFA is a prime example.

As a more general example, most commenters here still believe that most of the revenues flowing around is circular investments even if there are multiple sources showing e.g. enormous growth in broad enterprise AI spend. I’ve linked many such sources in the past, but somehow they never get much traction around here. Wonder why that is ;-)

where is the code that was universally accepted to be good?