PRACTICAL DESIGN PATTERNS

Simple Strategy Pattern Using Attributes

How to improve from traditional branching and understanding how the strategy pattern brings down cyclomatic complexity.

Nicklas Millard
Published in
7 min readJan 4, 2021

--

Illustration by Nicklas Millard
Illustration by Nicklas Millard

Are you struggling with the strategy pattern, or want an extra “take” on how you might go about applying it?

--

--

I mostly write to "future me" sharing what I learn and my opinion on software development practices. youtube.com/@nmillard | open for contracts in Jan 2026.