Questions tagged [observer-pattern]

A software 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.

Filter by
Sorted by
Tagged with
8 votes
3 answers
14k views

Listening to modifications on variables

I am seeking advice on the efficiency and long term implications of various ways of capturing modifications to instance variables that I have tried implementing. Essentially, this is setup: In my ...
psychicmachinist's user avatar
14 votes
1 answer
13k views

The Observer design pattern in Python, with unit tests

I'm continuing to work on the Head First Design Patterns book in an effort to become a more efficient and better Python programmer. Code review for the Strategy pattern in Chapter 1 is here with ...
PythonJin's user avatar
  • 485

1 2
3