Тёмный

Observer Pattern - DESIGN PATTERNS (C#/.NET) 

SingletonSean
Подписаться 22 тыс.
Просмотров 3 тыс.
50% 1

Learn about the observer pattern, which is a behavioral design pattern where an object can react to changes or events on another object. This pattern allows us to build reactive applications without introducing unnecessary coupling between components. I also demonstrate how to cleanup event subscriptions in order to prevent memory leaks.
Design patterns are important for implementing object-oriented designs and adhering to SOLID principles. Understanding these fundamental patterns helps software developers build clean and maintainable applications.
🕗 Timestamps:
0:00 - Pattern Introduction
0:42 - Demo Introduction
2:50 - Issues from Not Using Observer Pattern
4:25 - Implementing the Observer Pattern (ft. INotifyPropertyChanged)
8:46 - Disposing Event Subscriptions
10:54 - Summary
📦 Source code: github.com/SingletonSean/desi...
🔁 Full playlist: • Design Patterns
💎 Become a Member: / @singletonsean
🏠 Discord: / discord
🐤 Twitter: / singletonsean_
🏆 Donate: www.paypal.com/donate?hosted_...
✉️ Email: youtube@singletonsean.com

Наука

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

 

8 июл 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 4   
@pazzuls1120
@pazzuls1120 9 месяцев назад
Really appreciate you with this type of video. just short simple and get to the point.
@SingletonSean
@SingletonSean 9 месяцев назад
Thanks, glad to hear!
@davidmontilla6466
@davidmontilla6466 8 месяцев назад
Question, If I have more properties can I use same propertychange invoke?
@SingletonSean
@SingletonSean 8 месяцев назад
Good question! Personally, I like my events to represent domain concepts, while PropertyChanged on the other hand is more generic. But I think it depends on the situation. I think just using PropertyChanged would be okay in like 90% of situations.
Далее
5 Design Patterns That Are ACTUALLY Used By Developers
9:27
когда мучает жажда // Eva mash
00:58
Просмотров 331 тыс.
WPF C# MVVM Sample Application
13:16
Просмотров 17 тыс.
10 Design Patterns Explained in 10 Minutes
11:04
Просмотров 2,2 млн
Observer Design Pattern in Java
14:34
Просмотров 166 тыс.
FINALLY, the Visitor Design Pattern makes Sense
11:03
Simplify Configuration via Polymorphism
14:28
Просмотров 1,8 тыс.
Так ли Хорош Founders Edition RTX 4080 ?
13:00