Students Save 30%! Learn & create with unlimited courses & creative assets Students Save 30%! Save Now
Lessons:25Length:4.2 hours

2.9 Strategy Pattern

I frequently find myself writing if statements – for the sole purpose of setting some variable or doing something differently in the logic. When too many of these pile up, it’s time to devise a Strategy to help us encapsulate all these tiny details in a well defined place.