Re:Observable’s Not JavaScript
by isbvhodnvemrwvn on Friday June 14, 2019 @05:42PM
(#20186888)
RxJS is just one of several implementations of ReactiveX, it goes well beyond JS:
Re:Observable’s Not JavaScript
by Procrastes on Friday June 14, 2019 @05:31PM
(#20186828)
The Java class and many other occurrences grew out of the name of the Observer/Observable design pattern[1] in the "Gang of Four" "Design Patterns" book.[2]
The Go4 call this a “Subject” rather than an “Observable”. As far as I can tell the only occurrence of the word “observable” in the Go4 book is:
> Other user interface toolkits that employ this [Observer] pattern are InterViews [LVC89], the Andrew Toolkit [P+88], and Unidraw [VL90]. InterViews defines Observer and Observable (for subjects) classes explicitly. Andrew calls them "view" and "data object," respectively. Unidraw splits graphical editor objects into View (for observers) and Subject parts.
I work primarily in .NET and Angular and it’s a well known term in both of those. Especially confusing with RxJS observable as they are related to JavaScript too.
The term “observable” used as a noun in a programming context seems to me very clunky and vague. YMMV.
I am much more familiar with the term “observable” in physics. https://en.wikipedia.org/wiki/Observable