logoalt Hacker News

dofmyesterday at 6:03 PM1 replyview on HN

> instead it would spread its assumptions to different parts of the system,

But so does duplication, in practice, and it diverges more as it does.


Replies

coldteayesterday at 6:21 PM

Duplication is just code doing the same thing in several places, and as such it's much easier to make DRY (and much easier after you have N copies to see what should be shared and what should not), compared to re-architecting the whole system to remove a bad abstraction.

show 1 reply