Duplication «2027»

Once you see a definitive pattern, refactor it into a shared function or class. 3. How to Fix Duplication

Similar logic that appears in different parts of a system for valid, independent reasons. Changes to one shouldn't necessarily affect the other. duplication

Logic that is identical by mistake or convenience. This is the primary target for refactoring. Once you see a definitive pattern, refactor it