Top "Observer-pattern" questions

A design pattern in which 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.

How does AngularJS know when variables change? How does AngularJS dirty checking work?

I was reading some article to understand a little bit more how AngularJS works. One of the terms that I …

javascript angularjs observer-pattern
Python Observer Pattern: Examples, Tips?

Are there any exemplary examples of the GoF Observer implemented in Python? I have a bit code which currently has …

python design-patterns listener observer-pattern
Difference between Observer, Pub/Sub, and Data Binding

What is the difference between the Observer Pattern, Publish/Subscribe, and Data Binding? I searched around a bit on Stack …

model-view-controller design-patterns data-binding observer-pattern publish-subscribe
Observer is deprecated in Java 9. What should we use instead of it?

Java 9 came out, and Observer has been deprecated. Why is that? Does it mean that we shouldn't implement observer pattern …

java java-8 deprecated observer-pattern java-9
Text change notification for an NSTextField

I would like to use the code from the answer to this question: How to observe the value of an …

cocoa observer-pattern nstextfield nsnotifications
Difference between Observer Pattern and Event-Driven Approach

I always found the Observer Pattern almost similar to the usual event-driven approach. Actually, I have almost believed that they …

events design-patterns observer-pattern
how to implement observer pattern in javascript?

Hi I'm tyring to implement observer pattern in JavaScript: My index.js: $(document).ready(function () { var ironMan = new Movie(); ironMan.…

javascript design-patterns observer-pattern
Android Rxjava subscribe to a variable change

I am learning Observer pattern, I want my observable to keep track of a certain variable when it changes it's …

android rx-java observer-pattern
How can I update information in an Android Activity from a background Service

I am trying to create a simple Android application that has a ActivityList of information, when the application starts, I …

java android android-listview observer-pattern
Magento recalculate cart total in observer

I have an observer that removes items from the cart if they are out of stock (i.e. customer returns …

session magento observer-pattern cart