3 ms·
I wouldn't automatically refactor on the 3rd time. It's not enough for the three passages to happen to be identical at this moment in time. You've also go to b
by bunderbunder 8y ago
I wouldn't automatically refactor on the 3rd time.
It's not enough for the three passages to happen to be identical at this moment in time. You've also go to be sure that, going forward, they will need to evolve identically and in lockstep.
- falcolas 8y agoI agree, nothing is a hard and fast rule. And sometimes, an attempt to generalize copied-but-customized code can result in much less readable code than just leaving the originals in place.