the issue is that if you tried to write it to last 10 years it would be a different code base and wouldn't necessarily have gotten used like the one you actually did write.
The real take away here is that real (objective) mess hurry-hackjob code bases are good enough to last many years so you probably did the right thing.