It’s great until there’s some new regulation or costumer requirement and it can’t possibly be added to the monstrosity and so you lose those millions until you can rewrite, which takes months.
In general, I agree. I don’t write code that bad, even for prototypes. That said, I worry a lot less about being super meticulous DRY and best practices in my prototypes that in 90% of cases will never touch millions in value. Done is better than perfect.
All software is not life or death. But software can be something people come to rely on.
If I choose (unknowingly) to rely on software not done well and it bites me, I personally would rather not have relied on it at all.