There is an interesting idea that you don't write an abstraction until the 3rd time you have to implement something, because before that you don't know how the abstraction needs to structured.
It's not universally silly, but it is overapplied. If two blocks of code look similar enough to be extracted, but they belong to fundamentally unrelated systems, then they should not be extracted as that will cause the systems to be inappropriately coupled. Decoupling the systems later will be more expensive than the repeated code.
0
u/[deleted] Dec 15 '18
[deleted]