rehansaeed.github.io
rehansaeed.github.io copied to clipboard
[Comment] Reactive Extensions (Rx) - Part 3 - Naming Conventions
https://rehansaeed.com/reactive-extensions-part3-naming-conventions/
Pyry Jahkola commented on 2014-02-14 23:52:14
I think these naming guidelines from the Objective-C port of Rx were pretty sensible.
Muhammad Rehan Saeed commented on 2014-02-15 08:17:03
I had no idea Objective-C had Rx. Very Interesting guidelines. Especially for the side effects. Had not thought of that.
Neil Highley commented on 2017-01-25 12:22:09
Updted link: https://github.com/ReactiveCocoa/ReactiveSwift/blob/master/Documentation/DesignGuidelines.md
Lars Støttrup Nielsen commented on 2017-05-22 14:01:34
Not really sure where I stand yet on the hot vs cold naming convention.
But it can be relevant for a consumer to know what the observable he's subscribing to is: hot or cold.
hotObservable.toArray().subscribe() // will never finish due to the way toArray works.
coldObservable.toArray().subscribe() // will finish.
The consumer would have to use .take(n) on all his observables, in order to force them to complete, even when not required (such as cold observables).