Observer pattern

/əbˈzɜrvər ˈpætərn/ noun

Definition

A design pattern where an object (subject) maintains a list of dependents (observers) and automatically notifies them of state changes, typically by calling their update methods. This enables loose coupling between objects that need to stay synchronized.

Etymology

Formalized in the Gang of Four book (1994), though the concept existed in earlier event-driven systems. The name comes from the role of observers who watch for changes, similar to how newspaper subscribers are notified when new issues are published.

Kelly Says

The Observer pattern is like a celebrity's social media - when they post something new, all their followers get notified automatically without the celebrity having to personally call each fan! This is exactly how modern web frameworks update your UI when data changes, keeping everything in sync effortlessly.

Related Words

Explore More Words

Get the Word Orb API

Complete word intelligence in one call. Free tier — 50 lookups/day.