3 ms·
Imo, the correct rule is "copy if it is more likely to be modified separately" and "create one method if it likely has to change at the same time".
by watwut 4y ago
Imo, the correct rule is "copy if it is more likely to be modified separately" and "create one method if it likely has to change at the same time".
- ansmithz42 4y agoExcellent advice! I wish more programmers paid attention to this than just the 2-3 rules. The 2-3 rule tends to create unintentional tight coupling between things that becomes an iron bar that is even more evil to rectify.