The A-Z of Code Craft – D is for D.R.Y.
Jason Gorman:
Removing duplication is where some of our most popular libraries and frameworks came from.
Great abstractions in libraries came from removing duplication, not anticipating it. Remember this next time you go to make an abstraction.
This is an evidence-based approach to design. We don’t speculate that a function might be reused, we see where it will be reused; we see the need for it in the current code.