Observables are the next thing up from promises. Instead of handling a single asynchronous event, they are meant for handling streams of them.
Observables are the next thing up from promises. Instead of handling a single asynchronous event, they are meant for handling streams of them.
Makes sense.
LikeLike
They are used extensively in Angular 2 and make asynchronous programming a lot more straightforward imho.
LikeLike
Yes it’s part of the reactive programming stuff (first done at Facebook but now filtering into Google’s Angular 2)
LikeLike
John Hardy not a Turnbull fan as soon as I read your description, the term “functional reactive programming” (FRP) immediately popped into mind. I know you prefer to write JavaScript rather than to compile to JavaScript from a higher-level language, but Elm is one such higher-level language that targets JavaScript that was designed around FRP which I have been playing around with lately. It is amazingly simple and expressive.
LikeLike
I’m not completely constrained when it comes to language because I’m now using transcompilers to access es6 language features (before they are widely implemented in browsers). I’ll take a look at Elm.
LikeLike