Earlier quoted context omitted.
This mentality is how you end up inheriting terrible codebases.
I would rather write “bad” code that lasts long enough to be inherited than write perfect code that sits idle in a repo because I missed the market.
This is not relevant to the vast majority of developers, realistically (and is an important caveat to your original comment).