4 ms·
> when you have two I tend to refactor on two, but I've heard that letting DRYness lapse until three tends to be the sweet spot in terms of likeliness to break
by hunter2_ 3y ago
> when you have two
I tend to refactor on two, but I've heard that letting DRYness lapse until three tends to be the sweet spot in terms of likeliness to break even in effort. Although I guess pages per site is almost guaranteed to hit 3 anyway, whereas in general a block of code being used 3+ times doesn't necessarily have that same likelihood.
- michaelteter 3y agoI agree on 2 vs 3, but with CSS and other formatting rules it is too easy to become inconsistent on 2. And I hate inconsistency.