filmov
tv
The Strategy Pattern Will Make Your Python Code CLEANER

Показать описание
If we have lots of different ways of doing the same thing, how do we best represent that in Python? If we want to take a payment, but want to change our payment processor on the fly, how do we write clean, idiomatic Python code without lots of conditional statements everywhere?
Introducing the strategy pattern!
Check out the code:
Resources:
__________________________________________
Check out my other socials!
__________________________________________
Timestamps:
00:00 - Introduction
00:53 - What is the Strategy Pattern?
01:17 - Current code
02:20 - Refactor
03:42 - Adding a third data store
03:58 - But why bother?
04:26 - ABC comparison
05:03 - Single-method interfaces
06:22 - Outro
#python #softwareengineer
Introducing the strategy pattern!
Check out the code:
Resources:
__________________________________________
Check out my other socials!
__________________________________________
Timestamps:
00:00 - Introduction
00:53 - What is the Strategy Pattern?
01:17 - Current code
02:20 - Refactor
03:42 - Adding a third data store
03:58 - But why bother?
04:26 - ABC comparison
05:03 - Single-method interfaces
06:22 - Outro
#python #softwareengineer
The Strategy Pattern Will Make Your Python Code CLEANER
The Strategy Pattern Explained and Implemented in Java | Behavioral Design Patterns | Geekific
Strategy Pattern, The Best Software Design Pattern
Applying the Strategy Pattern in Kotlin
Typescript & Design Patterns | Strategy Pattern - 1
What is the Strategy Pattern? (Software Design Patterns)
Strategy Pattern – Design Patterns (ep 1)
The Strategy Pattern: Write BETTER PYTHON CODE Part 3
Breakout trading strategy | price action | (Accuracy 92% win rate)
Change Behaviors with the Strategy Pattern - Unity and C#
Strategy Design Pattern
8 Design Patterns | Prime Reacts
GO | The Strategy Pattern with easy Example in Code
How to Implement the Strategy Pattern in C#:
Strategy Design Pattern by Example in Kotlin
Clean iOS Architecture 101: The Strategy Pattern
How to use the STRATEGY PATTERN in Python
The Strategy Design Pattern - Ep 22 - C++ Coding
Modular Upgrades Made Easy Using the Strategy Pattern
The Strategy Pattern in Ruby
5 Design Patterns That Are ACTUALLY Used By Developers
Clean Code using the Strategy Pattern
Strategy and Factory Pattern, The Best Software Design Pattern Combo
Strategy pattern implementation - design patterns (ep 4)
Комментарии