From one piece The Wrong Abstraction 4 beliefs, in the piece's order there
-
korrents.com
Parameters and conditional branches accumulating inside shared code are the diagnostic that the abstraction is wrong.Their words
If you find yourself passing parameters and adding conditional paths through shared code, the abstraction is incorrect.
-
Their words
Once an abstraction is proved wrong the best strategy is to re-introduce duplication and let it show you what's right.
-
Their words
Existing code exerts a powerful influence. Its very presence argues that it is both correct and necessary.
+ 1 more
-
Their words
duplication is far cheaper than the wrong abstraction