DEV Community

Discussion on: Unhealthy Code: Primitive Overuse

Collapse
 
antontsvil profile image
Anton T

Any reason we wouldn't use switch/case with the strategy pattern?

Collapse
 
jamesmh profile image
James Hickey

You can. If there many different cases then I just find this technique cleaner.