News for hackers. Stuff that matters.
Re:Why your boss isn't worried about AI – "can't you just tu... by giancarlostoro on Tuesday October 14, 2025 @03:56PM (#45584054)
Age of Code does not automatically equal quality of code, ever. Good code is maintained by good developers. A lot of bad code is pushed out by management, and other situations, or just bad devs. This is a can of worms you're talking your way into.
Re:Why your boss isn't worried about AI – "can't you just tu... by 1313ed01 on Tuesday October 14, 2025 @04:03PM (#45584126)
Old code that has been maintained (bugfixed), but not messed with too much (i.e. major rewrites or new features) is almost certain to be better than most other code though?
Re:Why your boss isn't worried about AI – "can't you just tu... by DSMan195276 on Tuesday October 14, 2025 @04:14PM (#45584242)
"Bugfixes" doesn't mean the code actually got better, it just means someone attempted to fix a bug. I've seen plenty of people make code worse and more buggy by trying to fix a bug, and also plenty of old "maintained" code that still has tons of bugs because it started from the wrong foundation and everyone kept bolting on fixes around the bad part.
Re:Why your boss isn't worried about AI – "can't you just tu... by gridspy on Tuesday October 14, 2025 @09:48PM (#45587186)
One of frustrating truths about software is that it can be terrible and riddled with bugs but if you just keep patching enough bugs and use it the same way every time it eventually becomes reliable software ... as long as the user never does anything new and no-one pokes the source with a stick.

I much prefer the alternative where it's written in a manner where you can almost prove it's bug free by comprehensively unit testing the parts.

Re:Why your boss isn't worried about AI – "can't you just tu... by jayd16 on Wednesday October 15, 2025 @12:10AM (#45587986)
Listen to yourself. It's like you're denying the concept of improvement.

It's pointlessly argumentative to point out that some code doesn't get better.

Some code does and unlike AI it can be done with clear, precise, incremental changes.

Re:Why your boss isn't worried about AI – "can't you just tu... by eptcyka on Tuesday October 14, 2025 @04:09PM (#45584177)
I’ve read parts of macOS’ open source code that surely has been around for a while, maintained and absolute rubbish.
Re:Why your boss isn't worried about AI – "can't you just tu... by prasadjoglekar on Tuesday October 14, 2025 @04:08PM (#45584168)
It actually might. Older code running in production is almost automatically regression tested with each new fix. It might not be pretty, but it's definitely more reliable for solving real problems.
Re:Why your boss isn't worried about AI – "can't you just tu... by shakna on Tuesday October 14, 2025 @04:16PM (#45584260)
The list of bugs tagged regression at work certainly suggests it gets tested... But fixing those regressions...? That's a lot of dev time for things that don't really have time allocated for them.
Re:Why your boss isn't worried about AI – "can't you just tu... by LeifCarrotson on Tuesday October 14, 2025 @04:30PM (#45584450)
You're using different words - the top comment only mentioned the reliability of the software, which is only tangentially related to the quality, goodness, or badness of the code used to write it.

Old software is typically more reliable, not because the developers were better or the software engineering targeted a higher reliability metric, but because it's been tested in the real world for years. Even more so if you consider a known bug to be "reliable" behavior: "Sure, it crashes when you enter an apostrophe in the name field, but everyone knows that, there's a sticky note taped to the receptionist's monitor so the new girl doesn't forget."

Maybe the new software has a more comprehensive automated testing framework - maybe it simply has tests, where the old software had none - but regardless of how accurate you make your mock objects, decades of end-to-end testing in the real world is hard to replace.

As an industrial controls engineer, when I walk up to a machine that's 30 years old but isn't working anymore, I'm looking for failed mechanical components. Some switch is worn out, a cable got crushed, a bearing is failing...it's not the code's fault. It's not even the CMOS battery failing and dropping memory this time, because we've had that problem 4 times already, we recognize it and have a procedure to prevent it happening again. The code didn't change spontaneously, it's solved the business problem for decades... Conversely, when I walk up to a newly commissioned machine that's only been on the floor for a month, the problem is probably something that hasn't ever been tried before and was missed in the test procedure.

Re:Why your boss isn't worried about AI – "can't you just tu... by freetime2 on Tuesday October 14, 2025 @05:30PM (#45585244)
Yup, I have worked on several legacy codebases, and a pretty common occurence is that a new team member will join and think they may have discovered a bug in the code. Sometimes they are even quite adamant that the code is complete garbage and could never have worked properly. Usually the conversation goes something like: "This code is heavily used in production, and hasn't been touched in 10 years. If it's broken, then why haven't we had any complaints from users?"

And more often than not the issue is a local configuration issue, bad test data, a misunderstanding of what the code is supposed to do, not being aware of some alternate execution path or other pre/post processing that is running, some known issue that we've decided not to fix for some reason, etc. (And of course sometimes we do actually discover a completely new bug, but it's rare).

To be clear, there are certainly code quality issues present that make modifications to the code costly and risky. But the code itself is quite reliable, as most bugs have been found and fixed over the years. And a lot of the messy bits in the code are actually important usability enhancements that get bolted on after the fact in response to real-world user feedback.

Re:Why your boss isn't worried about AI – "can't you just tu... by giancarlostoro on Wednesday October 15, 2025 @12:18PM (#45594831)
Old software is not always more reliable though, which is my point. We can all think of really old still maintained software that is awful and unreliable. Maybe I'm just unlucky and get hired at places riddled with low quality software? I don't know, but I do know nobody I've ever worked with is ever surprised, only the junior developers.

Reality is management is often misaligned with proper software engineering craftsmanship at every org I've worked at except one, and that was because the top director who oversaw all of us was also a developer and he let our team lead direct us whichever way he wanted us to.

Re:Why your boss isn't worried about AI – "can't you just tu... by hatthew on Tuesday October 14, 2025 @04:37PM (#45584514)
I think we all agree that the quality of the code itself goes down over time. I think the point that is being made is that the quality of the final product goes up over time.

E.g. you might fix a bug by adding a hacky workaround in the code; better product, worse code.

Re:Why your boss isn't worried about AI – "can't you just tu... by kube-system on Tuesday October 14, 2025 @04:44PM (#45584598)
The author didn't mean that an older commit date on a file makes code better.

The author is talking about the maturity of a project. Likewise, as AI technologies become more mature we will have more tools to use them in a safer and more reliable way.

Re:Why your boss isn't worried about AI – "can't you just tu... by giancarlostoro on Tuesday October 14, 2025 @09:06PM (#45586923)
I've seen too many old projects that are not by any means better no matter how much they get updates because management define priorities. I'm not alone in saying I've been in a few projects where the backlog is rather large. When your development is driven by marketing people trying to pump up sales, all the "non critical" bugs begin to stack up.
Re:Why your boss isn't worried about AI – "can't you just tu... by kube-system on Tuesday October 14, 2025 @10:32PM (#45587480)
Absolutely. Which is why the author clearly meant "old code" as in mature. Not "old code" as in "created a long time ago".