Duplicate CodeA discount rule copied into three classes, a bug fix that reaches two. Learn to spot duplicate code, pick the right refactoring, and tell real duplication from look-alikes.November 26, 20269 minutes