|
|
|
|
|
by pineapple_sauce
745 days ago
|
|
How is applying DRY entering premature optimization territory (maybe relative to LOC?)? I argue it is instead: premature abstraction. Optimization is specialization (which is the opposite of DRY): to enable DRY you likely need to generalize the problem (i.e. abstract) such that you remove duplication. |
|
- Performance - Code structure / abstraction - Data structure - Team organization / org structure
I'd argue that DRY (and a focus on abstractions more generally) are optimizations of the codebase. Not all optimizations are optimizing the same thing.