by _ea1k · 3y ago · 0 comments
The natural consequence is that both sets of assumptions would have to get baked in somehow.
He'd take similar progressions all over the place to "remove duplication". It wasn't unusual for not only the complexity but also the line count (not including tests) to increase.
If you pointed that out, he'd say, yeah but duplication is always bad!
Needless to say, I don't agree.
Excessive DRY as how you described leads to complexity and complexity is bad for code maintainability. Properly applied DRY is supposed to reduce complexity.
Not sure if that is a paradox or not, be that as it may, in my experience it is true.