When to Refactor: Rule of Three, Preparatory, Opportunistic, Comprehension
This generated surface maps a learner-facing curriculum unit to its canonical source routes.
Curriculum surface
- Open learner-facing unit
- Curriculum path:
content/curriculum/foundations/semester-03-software-design/module-02-refactoring-techniques/concepts/cluster-01-the-refactoring-discipline/03-when-to-refactor-rule-of-three-and-opportunism-primary.md - App:
foundations - Semester:
semester-03-software-design - Module:
module-02-refactoring-techniques - Unit kind:
concept - Curation level:
generated_default
Learning objectives
- Explain When to Refactor: Rule of Three, Preparatory, Opportunistic, Comprehension in the language of the current curriculum, not just the source book.
- Apply When to Refactor: Rule of Three, Preparatory, Opportunistic, Comprehension to one concrete learner task or example inside this semester.
- Use
clean-code,good-code-bad-code,refactoringas a selective source of truth when the learner-facing explanation is not enough.
Prerequisites
- The earlier concept pages and practice tasks in the current module.
Source books
clean-codegood-code-bad-coderefactoring
Source routes
Clean Code
Good Code Bad Code
- /books/good-code-bad-code via
Good Code, Bad Code
Refactoring
- /books/refactoring via
Refactoring (Fowler)
Supporting curriculum routes
No supporting curriculum routes linked yet.
External enrichment
No curated enrichment resources yet.
AI companion modes
- Explain simply
- Socratic tutor
- Quiz me
- Challenge my understanding
- Diagnose my confusion
- Generate extra practice
- Revision mode
- Connect forward / backward
Source-of-truth note
This teaching unit is learner-facing guidance assembled from multiple canonical book routes. Use the listed source books as the primary conceptual spine for When to Refactor: Rule of Three, Preparatory, Opportunistic, Comprehension, and treat outside material as supporting enrichment only.