Skip to content

Glossary: Software Design Patterns

Observer

Also written: observer pattern

A pattern where the code that something happens in (the subject) keeps a list of listeners and calls each one, without knowing what they do. `logging` handlers work this way.

Where the book teaches it

Related terms

SubjectListenerPublish/subscribeEventBus