strategy-safely-eliminates-conditionals

Status: OUT

Strategy's conditional elimination through composition-based polymorphic delegation achieves clean, maintainable algorithm selection only while clients can understand the differences between available strategies; the technique degrades when strategy selection requires domain knowledge that clients should not possess.

Justifications

Conditional elimination's benefit is gated on clients being able to make informed strategy choices

Depends on (SL): gof-strategy-eliminates-conditionals, behavioral-patterns-favor-composition

Unless: gof-strategy-drawback-client-awareness

JSON