Some of the worst systems I've seen were those designed to "last for decades".
https://en.wikipedia.org/wiki/Second-system_effect
But that's also not the same as "to last decades". A lot of the old space code was used and dismissed after a few years / missions.
The key difference is not "future-proofing" but "proofing" in general: the code had to be absolutely robust.
https://www.fastcompany.com/28121/they-write-right-stuff
Some of the worst systems I've seen were those designed to "last for decades".
https://en.wikipedia.org/wiki/Second-system_effect