--- id: wiki-2026-0508-rule-of-three-3의-법칙 title: Rule of Three (3의 법칙) category: 10_Wiki/Topics status: duplicate canonical_id: 3의-법칙-rule-of-three duplicate_of: "[[3의 법칙 (Rule of Three)]]" aliases: [] source_trust_level: A confidence_score: 0.9 verification_status: redirected tags: [duplicate, refactoring, heuristic] last_reinforced: 2026-05-10 github_commit: pending --- # Rule of Three (3의 법칙) > **이 문서는 [[3의 법칙 (Rule of Three)]] 의 중복본입니다.** Canonical 문서로 redirect. ## 핵심 요약 - "Three strikes and you refactor" — Don Roberts via Fowler. - 첫 duplication 은 그대로, 두 번째 는 wince, 세 번째 는 abstract. - 너무 이른 abstraction (DRY 과잉) 의 antidote — premature generalization 은 wrong abstraction 보다 나쁘다 (Sandi Metz). ## 🔗 Graph - 부모: [[3의 법칙 (Rule of Three)]] (canonical) - 인접: [[Refactoring_Best_Practices]] · [[DRY Principle (Don't Repeat Yourself)]] · [[Code Smell]] ## 🕓 변경 이력 | 날짜 | 변경 | |---|---| | 2026-05-08 | Phase 1 | | 2026-05-10 | 중복 처리 — canonical 문서로 redirect |