Hacker News new | ask | show | jobs
by wtch98 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.

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

1 comments

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.