Observer Design Pattern - Beau teaches JavaScript

preview_player
Показать описание
With the Observer Design Pattern, if an object is modified it broadcasts to dependent objects that a change has occurred.

Code

Other resources on topic:

⭐JavaScript Playlists⭐

-
We're busy people who learn to code, then practice by building projects for nonprofits. Learn Full-stack JavaScript, build a portfolio, and get great references with our open source community.

Рекомендации по теме
Комментарии
Автор

OK, this pattern makes sense if when the subject state changes, the observer's state changes too. In this example, there is no real data transferring between Subject and Observer. Just indexes

evgenylevchenya
Автор

Simple and extremelly useful. Keep it up bro!

edilsonlima
Автор

You used factory pattern, why use new keyword)?

dilwalaShakib
Автор

It's good, you are explaining very fast, please make videos of 10-15 min long.

sunilsigar
Автор

It seems the pattern of how Angular handle its sync between view and components under the hood

FredoCorleone
Автор

Awesome video!!! And one quick tip for you, you might need to split your playlist into smaller ones, like basic js, design patterns, data structure and algorithms and maybe fps. It will help people with different needs to find their target easier : )

panzheng
Автор

Why new Observer(1) is used insted of calling Observer(1)?

ankitmehrotra
Автор

When & why use this Design Pattern?

oufcena
Автор

it seems as if this guys IQ is double what mine is...

johnn
visit shbcf.ru