Deprecating the Observer Pattern
Ingo Maier, Tiark Rompf, Martin Odersky · Infoscience (Ecole Polytechnique Fédérale de Lausanne) · 2010
Programming interactive systems by means of the observer pattern is hard and error-prone yet is still the implementation standard in many production environments. We present an approach to gradually deprecate observers in favor of reactive programming abstractions. Several library layers help programmers to smoothly migrate existing code from callbacks to a more declarative programming model. Our central high-level API layer embeds an extensible higher-order data-flow DSL into our host language. This embedding is enabled by a continuation passing style transformation.
Cited by 36 works. Open-access PDF
Authors
References
- Design Patterns: Elements of Reusable Object-Oriented Software
- A cookbook for using the model-view controller user interface paradigm in Smalltalk-80
- Actors: A Model of Concurrent Computation in Distributed Systems
- The Esterel synchronous programming language: design, semantics, implementation
- Compiling with Continuations
- Concurrent object-oriented programming
- TelegraphCQ
- High-performance complex event processing over streams
- Functional reactive animation
- Synchronous programming with events and relations: the SIGNAL language and its semantics