Re:DRY is an over-rated programming principle?
by hernantz on Thursday July 07, 2022 @09:04AM
(#32013567)
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.
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.