rehansaeed.github.io icon indicating copy to clipboard operation
rehansaeed.github.io copied to clipboard

[Comment] Reactive Extensions (Rx) - Part 3 - Naming Conventions

Open RehanSaeed opened this issue 5 years ago • 4 comments

https://rehansaeed.com/reactive-extensions-part3-naming-conventions/

RehanSaeed avatar May 12 '20 11:05 RehanSaeed

Pyry Jahkola 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.

RehanSaeed avatar May 12 '20 11:05 RehanSaeed

Muhammad Rehan Saeed 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.

RehanSaeed avatar May 12 '20 11:05 RehanSaeed

Neil Highley Neil Highley commented on 2017-01-25 12:22:09

Updted link: https://github.com/ReactiveCocoa/ReactiveSwift/blob/master/Documentation/DesignGuidelines.md

RehanSaeed avatar May 12 '20 11:05 RehanSaeed

Lars Støttrup Nielsen 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).

RehanSaeed avatar May 12 '20 11:05 RehanSaeed