3 — Replace Conditional with Polymorphism
Purpose
[stub: replace-conditional-with-polymorphism]
Metadata
| Author | Amit Singh |
| Scope | low-level-design |
Local graph
Related notes
1 — Refactoring Techniques
Surveys the catalog of small, behavior-preserving transformations used to improve code structure without changing external behavior.
2 — Identifying Code Smells
Covers recognizing structural warning signs — long methods, feature envy, shotgun surgery — that signal a refactor is due before the design breaks down.
4 — Extract Object
Covers pulling a cohesive group of fields and behavior out of a bloated class into a new, focused collaborator.
5 — Introduce Parameter Object
Explains grouping a repeated cluster of parameters into a single object to reduce signature churn and clarify caller intent.