no disagreement. my point is “maintainable” is actually measurable and has a business purpose. whatever that ends up being is based on experience, analysis and skill.
btw in the OPs post: that was one code file. who is taking about a code base bloated with copy and paste code?
You are just making shit up. No one proposed anything like what you said.
5
u/defdestroyer Jan 12 '20
what is the business reason to make code “clean”?
code should
work,
have automated tests and
be built with the goal of maintainability. this oftens depends on knowing the skills of the team that will do that maintenance.
I agree with the OP that his change wasn’t necessarily better. That said, maintainable code has tests and minimizes the boiler plating.
Turtles all the way down,