Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
watwut
· 4y ago · 0 comments
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".
Comments
[–]
ansmithz42
4y ago
Excellent 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.