Hacker News new | ask | show | jobs
by smallnamespace 17 days ago
The cost of AI is rapidly falling while its engineering capabilities keep rising. This implies that code is becoming more fungible, and you should expect any code you write today to mostly be replaced in the near future.

The requirements will be more stable than the code. Focus on them instead.

5 comments

Robust systems experience very little turnover in nearly every non-software discipline that involves systems. Why the hell would we insert risk into our system-building processes by needlessly turning over code?
Because the code is an artifact that represents one particular way to accomplish a goal. There are always better ways to accomplish goals.

It’s important to separate the requirements and the metrics and tests that show your requirements are met from the implementation itself. But if your metrics and tests are robust, then it is safe to pour compute into searching for better and better implementations, subject to budget constraints.

> The cost of AI is rapidly falling while its engineering capabilities keep rising. This implies that code is becoming more fungible, and you should expect any code you write today to mostly be replaced in the near future.

I have code I wrote in 2006 which is still in daily use adding business value at my company. Why would it need replacing?

One reason is because a lot of older code is insecure. Another reason is that if you can find a better way to accomplish the goal, then you should eventually switch to it.

Technically, the FAA sees positive business value from using floppy disks over magnetic tape or punch cards.

But that’s not the right metric, since it ignores the fact that floppy disks are worse than a modern alternative.

If your code from 2006 is already perfect and there is no room for improvement, then there never be a need to replace it. But this doesn’t describe most software.

There is one more thing to mention, which is that any code from 2006 that you’re running has survived the quality filter of time. Most code from 2006 isn’t in use today. I think even a smaller proportion of code written today will be in use 20 years later.

> One reason is because a lot of older code is insecure

As is a lot of newer code. Depends on the threat model

> Another reason is that if you can find a better way to accomplish the goal, then you should eventually switch to it.

If it's financially better and the gains outweigh the risks, sure

> If your code from 2006 is already perfect and there is no room for improvement

Or more realistically if the cost of improving it would be higher than the business benefit gained from improving it

> which is that any code from 2006 that you’re running has survived the quality filter of time

Not really, it's terrible code. But it does the job, because it was written to solve a business problem, not written to make beautiful code. If spending money on AI (thinking about the problem, writing the prompt, doing some form of testing) is cheaper than literally doing nothing, then sure.

> The requirements will be more stable than the code.

These kinds of changes to the way teams are formed and managed, and how products are developed is what really fascinates me about the impact of coding agents.

Even if it works, for some definition of works, to dump a huge spec into a coding agent context window, I suspect this is where a lot of horror stories about agentic coding come from.

Teams, and the management structure above them, are going to have to get used to more collaborative and iterative product definition and development in order to extract the most value from coding agents.

> The cost of AI is rapidly falling while its engineering capabilities keep rising.

Wouldn't count on it. There likely is a ceiling, we might or might not be near it.

Definitely with the cost. I strongly believe the price now is heavily subsidized and will shoot up in the future. (Not new. First hit is free..)
> This implies that code is becoming more fungible

Code has always been fungible, in the sense that it could be refactored.

> you should expect any code you write today to mostly be replaced in the near future

Why on earth do you think this? It does not follow from your other points. Just because you could turn your business into a rube goldberg code juggling machine, why would you?

it's amazing that you could read a book like "The Design and Implementation of the 4.4 BSD Operating Systems" (1996) and still find it relevant to browse the code of OpenBSD and NetBSD, three decades later. While good software gets plenty of updates and additions, the core ideas barely bulge over time. A lot of churn is people playing around with no reason instead of solving the problem properly the first time.