Design Pattern Riddle #4

q. When there are many way to do one thing,
And you need to switch from that to this.
Just abstract away those different pieces;
Then you’ll be living in encapsulated bliss.

a. Strategy

~/riddle by me

If you enjoyed this post, please consider sharing it with others via the following Twitter or Reddit buttons. I also have a YouTube Channel with free web development videos that you are welcome to watch and/or subscribe. As always, you can reach out to me on Twitter at @elijahmanor. Thanks and have a blessed day!