Justin du Coeur (jducoeur) wrote,
Justin du Coeur
jducoeur

Deprecating the Observer Pattern

Folks who want to stretch their brains with some cutting-edge programming thought may be interested in this paper:

http://lamp.epfl.ch/~imaier/pub/DeprecatingObserversTR2010.pdf

It’s by some high-level Scala language geeks (including Martin Odersky, the main driving force behind the Scala language), and provides some fascinating arguments about the nigh-ubiquitous Observer programming pattern. It argues that Observer, while somewhat convenient (especially in C#, where it is baked into the language), is pretty broken conceptually in a variety of ways. Through extensive refactoring, they show a wildly different approach to event management, that wraps events up into higher-level, composable pieces.

Very neat stuff, and a bracing reminder of the modern programming techniques that are starting to come in. This stuff is much more powerful than Observer, and I suspect much safer in lots of respects, but it is sufficiently *different* that it requires playing Silly-Putty with my brain to wrap my head around it...
Tags: programming
Subscribe

  • Ideas for fighting Fake News

    [I'm mostly just posting links over in Facebook, but my more technical friends tend to be over here.] Here is a really excellent collection of…

  • Damn

    *Sigh*. I was sure this was possible, and was thinking for the past two weeks that it was starting to feel likely, but was really hoping otherwise. I…

  • Time to change the name of the meme?

    From cnn.com today: 'Trump went on to again attack women who have accused him of sexual assault or misconduct, saying, "every woman lied when they…

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments