The reasons are obvious when you think about it for a second. The projects that require temporary fixes are business-critical with tight timelines. The only projects with time for perfectly-crafted artisan code are unimportant ones.
"we don't have time" is a logical fallacy that is usually just shorthand for "I don't want to deal with it" on management's part.
I find that when I simply do it well without "asking permission" I am able to get it done quickly enough to avoid uncomfortable discussions, and the inevitable feature changes are much easier to implement (thus faster turn around).
Good design focuses on generic enough code to be resilient to change. This is a result of isolating feature specific volatile code to small pluggable modules.
Often, some of the resulting code can be substituted in other areas of the system, further simplifying it.
1.0k
u/DenormalHuman Nov 25 '22
the number of times I have seen this be literally true is amazing