Solving A Common Issue With The Strategy Pattern // In Python
💡 Learn how to design great software in 7 steps: https://arjan.codes/designguide. If your strategy pattern relies on parameters, what's the right place set them? In this video, I show you three ways of doing this and what their effect is on the design of your software. The code I worked on in this example is available here: https://github.com/ArjanCodes/2021-st.... 🎓 ArjanCodes Courses: https://www.arjancodes.com/courses/ 🔖 Chapters: 0:00 Intro 0:58 Explaining the example 3:34 Analysis of the example 4:40 Solution #1: keyword args 7:02 Solution #2: parameters class 10:47 Solution #3: strategy class initializer 13:56 Final thoughts #arjancodes #softwaredesign #python

▶︎
Don’t Use Boolean Flags in Python, Use Policies Instead

▶︎
How to Implement the Strategy Design Pattern in Python

▶︎
10 Important Python Concepts In 20 Minutes

▶︎
Trump Brags About His Brain, Crowd Size & Pool, CBS Fires Scott Pelley & Don Jr's Honeymoon Video

▶︎
The Factory Pattern in Python // Separate Creation From Use

▶︎
You've (Likely) Been Playing The Game of Life Wrong

▶︎
Python Lists vs Tuples vs Sets - Visually Explained

▶︎
The State Pattern Done the Pythonic Way

▶︎
I Shouldn't Even Be Talking About This

▶︎
I Hacked This Temu Router. What I Found Should Be Illegal.

▶︎
How To Easily Do Asynchronous Programming With Asyncio In Python

▶︎
7 Python Mistakes That Instantly Expose Junior Developers

▶︎
I Re-Created A Quant Trading Strategy With Claude Code (Insanely Cool)

▶︎
Malloc is NOT Magic: Let's Build it to Learn What's Inside!

▶︎
The Factory Design Pattern is Obsolete in Python

▶︎
More Python Code Smells: Avoid These 7 Smelly Snags

▶︎
Creator of C++: Bell Labs, Negative Overhead Abstraction, Mistakes | Bjarne Stroustrup

▶︎
The State Pattern in Python (Real Examples)

▶︎
"We Ran Out Of Columns" - The Worst Codebase Ever

▶︎
