I actually don't understand why it is shortsighted.
It's an extreme point of view, sure, but in a perfect world this would be the case every time you build something.
On the opposite end of the spectrum you have to rewrite the entire codebase every time you interact with it to make it fit.
Reality is somewhere between those.