“duplication is far cheaper than the wrong abstraction”
- Sandi Metz in “All the little things” at RailsConf 2014
The quote is often put out of context to support the idea it’s always better to postpone the abstraction until there’s enough duplication.
#SoftwareDevelopment #oop
- Sandi Metz in “All the little things” at RailsConf 2014
The quote is often put out of context to support the idea it’s always better to postpone the abstraction until there’s enough duplication.
#SoftwareDevelopment #oop
Comments
That’s not the original premise.
“Prefer duplication over the wrong abstraction. If your choice is between the wrong abstraction and duplication, you should choose duplication.”.
Very often the way forward is to take a step back. Once we’ve noticed the abstraction is wrong, it’s time to re-introduce the duplication and see new abstractions emerge.