3 ms·
> My code traded the ability to change requirements for reduced duplication, and it was not a good trade. This is the the one that really clinches it for me.
by bunderbunder 3y ago
> My code traded the ability to change requirements for reduced duplication, and it was not a good trade.
This is the the one that really clinches it for me.
I think it's important to be aware that "clean code" standards came out of the early-mid 2000s contract development community. "Maintainability" means something different in that context, for two killer reasons. First, you're very likely to walk away from the project after a fairly short time period. Maybe a couple months, maybe a couple years. In 5 years, though? It's almost certainly someone else's problem. Second, you probably bill by the hour, or something like it. So decisions that make the code resistant to future change aren't really a bad thing, because, while they do make that hypothetical future maintenance work more expensive, you also get to charge more money to cover those costs.
I'm not trying to cast shade on contract development shops here. Business is business. But I do think that those of us who are developing software for ourselves might be operating under a somewhat different incentive structure.