Design Patterns Explained - The Strategy Pattern
The strategy design pattern can help make code more readable, maintainable when you need to be able to select an algorithm during the run time of a program.
This is done through the use of polymorphism.
Firstly I show how code can be bad when not using it, and then show the same code, but written using the pattern in mind.
=========
SOURCE CODE: https://github.com/Hopson97/design-patterns-explained/tree/master/strategy
=========
RESOURCES:
More info on strategy pattern:
https://refactoring.guru/design-patterns/strategy
=========
MUSIC USED:
Ken Silverman - PREPSONG - https://www.youtube.com/watch?v=XbSHkB3vF4w
Pokemon DP - Route 209 - https://www.youtube.com/watch?v=bw_iFKE5QBE
Banjo Kazooie - Main Title - https://www.youtube.com/watch?v=dQNAVqW1shA
Banjo Kazooie - Pause Screen - https://www.youtube.com/watch?v=BWzc_jgpIzg
Orchard Media - Square Hill (Spyro) - https://www.youtube.com/watch?v=vKYia8vKp2Q
Tales of Phantasia - The Final Act - https://www.youtube.com/watch?v=4Ja7PJUkvyk
Ken Silverman - DRIFSNG22 - https://www.youtube.com/watch?v=x2qAjf4sGZE
=========================================
LINKS:
GitHub:
https://github.com/Hopson97
Discord Server:
https://discord.gg/DeEhUXY
Support me on Patreon:
https://www.patreon.com/Hopson
Follow me on Twitter:
https://twitter.com/Hopson1997
Follow me on Twich:
https://www.twitch.tv/hopsonn
Subscribe to the subreddit:
https://www.reddit.com/r/HopsonCommunity/
Community Channel:
https://www.youtube.com/channel/UCvP6PNyj42j9PHPmCpo7Srg
Видео Design Patterns Explained - The Strategy Pattern канала Hopson
This is done through the use of polymorphism.
Firstly I show how code can be bad when not using it, and then show the same code, but written using the pattern in mind.
=========
SOURCE CODE: https://github.com/Hopson97/design-patterns-explained/tree/master/strategy
=========
RESOURCES:
More info on strategy pattern:
https://refactoring.guru/design-patterns/strategy
=========
MUSIC USED:
Ken Silverman - PREPSONG - https://www.youtube.com/watch?v=XbSHkB3vF4w
Pokemon DP - Route 209 - https://www.youtube.com/watch?v=bw_iFKE5QBE
Banjo Kazooie - Main Title - https://www.youtube.com/watch?v=dQNAVqW1shA
Banjo Kazooie - Pause Screen - https://www.youtube.com/watch?v=BWzc_jgpIzg
Orchard Media - Square Hill (Spyro) - https://www.youtube.com/watch?v=vKYia8vKp2Q
Tales of Phantasia - The Final Act - https://www.youtube.com/watch?v=4Ja7PJUkvyk
Ken Silverman - DRIFSNG22 - https://www.youtube.com/watch?v=x2qAjf4sGZE
=========================================
LINKS:
GitHub:
https://github.com/Hopson97
Discord Server:
https://discord.gg/DeEhUXY
Support me on Patreon:
https://www.patreon.com/Hopson
Follow me on Twitter:
https://twitter.com/Hopson1997
Follow me on Twich:
https://www.twitch.tv/hopsonn
Subscribe to the subreddit:
https://www.reddit.com/r/HopsonCommunity/
Community Channel:
https://www.youtube.com/channel/UCvP6PNyj42j9PHPmCpo7Srg
Видео Design Patterns Explained - The Strategy Pattern канала Hopson
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
Design Patterns Explained - Model View ControllerStrategy Pattern – Design Patterns (ep 1)Strategy Design Pattern10 Design Patterns Explained in 10 MinutesCoding ASCIIMON in Rust (ASCII Pokemon) - Episode 1The strategy pattern: write BETTER PYTHON CODE Part 35 Design Patterns Every Engineer Should KnowUnderstanding The Visitor Design PatternFactory, Abstract Factory, Factory Method - Design Pattern (C#)Coding a Game for a University Competition in PythonThe Strategy Pattern Explained and Implemented in Java | Behavioral Design Patterns | GeekificAdapter Design PatternPyGame Beginner Tutorial in Python - Sprite AnimationSOLID Design PatternsDesign Patterns in Plain English | Mosh HamedaniWhat is the Strategy Pattern? (Software Design Patterns)Observer Pattern – Design Patterns (ep 2)Adapter Design Pattern in JavaIterator pattern explained - Brain Bytes (Java Brains)