You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> **Observer**: defines a one-to-many dependency between objects so that when one object changes state, all of its dependents are notified and updated automatically.
3
+
> **Observer**: defines a one-to-many dependency between objects so that when one object changes state, all of its
4
+
> dependents are notified and updated automatically.
4
5
5
-
Very useful design pattern, often used in user interfaces and as part of the popular Model-View-Controller design pattern used, for instance, in Django.
6
-
7
-
I find the name contradictory: shouldn't it be called the 'Subject' design pattern as the subject is the key actor ?
6
+
A very useful design pattern, often used in user interfaces
7
+
and as part of the popular Model-View-Controller (MVC) pattern used,
8
+
for instance, in Django.
9
+
As I wrote out the code I found it very appealing that I did not need
10
+
to change the subject at all to add new observers.
0 commit comments