Design patterns in life and Ruby – gain an intuitive understanding of OO design patterns by linking them with real-life examples. Do you know how to order a burger? If so, I have a good news for you: you already know how to use the Strategy Pattern! How so, you might ask? Well, let’s take a look at the definition of Strategy Pattern. The Strategy Pattern: How does this have anything to do with burgers? Let’s think about burgers for a second. There are a lot of varieties of burgers: veggie burger, cheeseburger, grilled chicken burger, double cheeseburger… All of… Continue reading
Design Pattern: Strategy and Burger
