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

Опубликовано: 09 Октябрь 2024
на канале: SingletonSean
3,539
69

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: https://github.com/SingletonSean/desi...
🔁 Full playlist:    • Design Patterns  

💎 Become a Member:    / @singletonsean  
🏠 Discord:   / discord  
🐤 Twitter:   / singletonsean_  
🏆 Donate: https://www.paypal.com/donate?hosted_...
✉️ Email: [email protected]