Design Patterns: Observer and Publish-Subscribe

Опубликовано: 26 Июль 2017
на канале: Microsoft Visual Studio
23,687
365

This is the fourth of an eight part series where Robert is joined by Phil Japikse to discuss design patterns. A design pattern is a best practice you can use in your code to solve a common problem. In this episode, Phil demonstrates the Observer pattern. In this pattern, an object, called the subject, maintains a list of its dependents, called observers, and notifies them automatically of any state changes, usually by calling one of their methods. Phil also compares the Observer pattern to the Publish-Subscribe pattern.

Resources:

Sample code: https://github.com/skimedic/presentat...
Design Patterns: Elements of Reusable Object-Oriented Software book: https://www.amazon.com/Design-Pattern...
Head First Design Patterns book: https://www.amazon.com/Head-First-Des...


Смотрите видео Design Patterns: Observer and Publish-Subscribe онлайн, длительностью часов минут секунд в хорошем качестве, которое загружено на канал Microsoft Visual Studio 26 Июль 2017. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 23,687 раз и оно понравилось 365 посетителям.