4 ms·
> 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.
by dofm 4mo ago
> 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.
- coldtea 4mo agoDuplication 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.
- cjfd 4mo agoNo. The duplication is seldomly that clean. It has started to diverge in subtle ways where the question becomes whether that was the intention or not. In the worst possible cases it has resulted in 8000-line functions full of duplication. 're-architecting the whole system to remove a bad abstraction' sounds fear mongering. That never happens.