Hacker Newsnew | past | comments | ask | show | jobs | submit | OnlyMortal's commentslogin

All code is legacy. Business needs shift.

The likes of Copilot are ok at boiler-plate if it has an example or two to follow. It’s utterly useless at solving problems though.


> All code is legacy.

No. Plainly incorrect by any reasonable definition (hint: it's in the memory of the people working on it! As described in OP!), and would immediately render itself meaningless if it were true.


Any code becomes legacy code as soon as it goes into production. The only non-legacy code is the one you delete right after writing it.


By what definition? You might be more reluctant to change it now, but that's not the same thing.


You’re quite clearly wrong.

You write code to fit the immediate business need and that shifts rapidly over a year or two.

If you do otherwise, you’re wasting your time and the money of the enterprise you work for.

You cannot see the future however smart you might be.


"Rapidly over a year or two"

That time window is when the code is not legacy yet. When the developers who wrote the code are still working on the code, the code is loaded into their collective brain cache, and the "business needs" haven't shifted so much that their code architecture and model are burdensome.

It's pithy to say "all code is legacy" but it's not true. Or, as from the other reply, if you take the definition to that extreme, it makes the term meaningless and you might as well not even bother talking, because your words are legacy the instant you say them.


Why are enterprises running code from 1985?

How long code needs to last is actually highly variable, and categorical absolutist statements like this tend to generally be wrong and are specifically wrong here. Some code will need to change in a year. Some will need to last for forty years. Sometimes it's hard to know which is which at the time it is written, but that's part the job of technical leadership: to calibrate effort to the longevity of the expected problem and the risks of getting it wrong.


You would start to have a case if you said "all code older than a year or two". You didn't, you just said "all", including code you wrote last week or five minutes ago. More to the point, you're including well-factored code that you know well and are used to working with day in and day out. If that's legacy code, then you've triggered the second half of my objection.


Obviously, code is constantly changing. That's not really the point. The point is that as soon as no one understands the code (thus no one on staff to effectively debug or change it) it's "legacy" code.

Let's say you need to make big sweeping changes to a system. There's a big difference if the company has the authors still happily on staff vs. a company that relies on a tangle of code that no one understands (the authors fired 3 layoffs ago). Guess which one has the ability to "shift rapidly"?


Lagrange? I see your point.

I’ll get my coat.


Such as deduplication.


throws faeces

Nonsense!

Source: Engineer


I heard that, in the Netherlands after WW2, the descendants of people who starved were shorter in height even though they were born after the war.

Admittedly this was from a Dr Karl podcast.


It's in the article, and it's been overweight.


Heh. I worked on the Mac version of ViaVoice. I joined as I was already an expert in AppKit and Obj-C.

We were given old Macs running Classic to run Notes so we had two computers. One being MacOSX. Notes was the biggest pile of crap I’ve ever had to use. With one exception…

On the OSX box we were happily running svn until we were forced to use some IBM command-line system for source control. To add insult to injury, the server was in Texas and we were in Boca Raton (old PC factory as it happens). The network was slow.

It had so many command-line options a guy wrote a TCL for it.

Adding to that was the local IBM lan was token ring and we were Ethernet. That was fun.


That’s very interesting. Typically a Rabin fingerprint is used to identify identical chunks of data.

Identifying similar blocks and, maybe sub-rechunking isn’t something I’ve ever considered.


I assume he’s clipping hidden surfaces?


I see what you did there :-)


Spelled out for those who don't: 'sombrero' is Spanish for hat.


My personal favourite unit converter is here: https://www.theregister.com/Design/page/reg-standards-conver...


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: