12 ms·
DRY often leads to too much abstraction that while correct from the theory of software engineering, it increases complexity and maintainability costs. That bei
by hernantz 4y ago
DRY often leads to too much abstraction that while correct from the theory of software engineering, it increases complexity and maintainability costs.
That being said, I always allow myself to repeat code until a good enough patter emerges from that repetition, and then I refactor. Having the same code twice is not always sufficient to reveal what is the right refactor to do, if any.