Services
Training
Coaching
Engineering
Content
Community
Company
The conditional expressions that control an object's state transitions are complex.
Replace the conditionals with State classes that handle specific states and transitions between them.
Chain Constructors
Compose Method
Encapsulate Classes With Factory
Encapsulate Composite With Builder
Extract Adapter
Extract Composite
Extract Parameter
Form Template Method
Inline Singleton
Introduce Null Object
Introduce Polymorphic Creation With Factory Method
Limit Instantiation With Singleton
Move Accumulation To Collecting Parameter
Move Accumulation To Visitor
Move Creation Knowledge To Factory
Move Embellishment To Decorator
Replace Conditional Dispatcher With Command
Replace Conditional Logic With Strategy
Replace Constructors With Creation Methods
Replace Hard-Coded Notifications With Observer
Replace Implicit Language With Interpreter
Replace Implicit Tree With Composite
Replace One/Many Distinctions With Composite
Replace State-Altering Conditionals with State
Replace Type Code With Class
Unify Interfaces With Adapter
Unify Interfaces