Тёмный

[Design Pattern] Strategy Pattern in c# 

Eric Tech
Подписаться 972
Просмотров 2,7 тыс.
50% 1

In this video, I'm going to explain Strategy Design Pattern, why the Strategy Pattern is such an important design pattern. I tell you what the strategy pattern is, how it works, and explain it with an example.
Here are the content timelines:
⭐️ Contents ⭐️
⌨️ (0:00) Intro
⌨️ (0:54) Problem
⌨️ (2:16) Solution
⌨️ (4:21) Strategy Pattern vs State Pattern
Code: github.com/Eric-programming/C...
In the end, you’ll have a really good understanding on what Strategy Pattern is, what problems does it solve, and when should we use this pattern.

Опубликовано:

 

21 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 2   
@berkackgoz7825
@berkackgoz7825 2 года назад
Thanks for the clear explanation! Just out of curiosity, could we use Factory Method design pattern here to abstract that compression logic from the main class as well? I think we could have a factory that returns compression classes based on the given type (essentially we’d move switch to factory). Each compressors could use the same interface and that could allow factory to work with them and call their methods regardless of their implementation details. And this could be injected from outside just like how you do for strategy pattern. Would this approach be a viable alternative? Just trying to get a basic understanding of different patterns, sorry if this came across a little out of context.
Далее
[Design Pattern] Template Method Pattern
5:18
Просмотров 1,6 тыс.
C# Strategy Стратегия | Design Patterns
19:06
Beautiful gymnastics 😍☺️
00:15
Просмотров 10 млн
Strategy Pattern - DESIGN PATTERNS (C#/.NET)
20:36
Просмотров 3,2 тыс.
Design Patterns: Strategy
13:59
Просмотров 37 тыс.
Singleton Design Pattern in C# - Do it THAT way
13:15
The Smart Way of Using the Decorator Pattern in C#
12:37
5 Design Patterns That Are ACTUALLY Used By Developers
9:27
From Software Engineer to VP Engineering - Vincent Chu
23:33
Simplest Decorator Design Pattern in C#
10:55
Просмотров 25 тыс.