2 ms·
I tend to follow "1, 2, many" Duplication in one place, I'm often fine with, because you don't yet know the level of abstraction needed with only two examples.
by philipwhiuk 2y ago
I tend to follow "1, 2, many"
Duplication in one place, I'm often fine with, because you don't yet know the level of abstraction needed with only two examples.
More than twice however and you should be able to see common patterns across all three implementations and be able to isolate it.