Skip to content

Conversation

@andersio
Copy link
Member

@andersio andersio commented Dec 9, 2016

It adds a table of "core reactive primitives" with a very brief description plus a metaphor.

README.md Outdated
### Core Reactive Primitives
| Primitive | Description |
| --------- | ------------|
| `Signal` | `Signal` is a unilateral stream of events.<br /><br />It is like a live TV feed - you can observe and react to the content, but you cannot have a side effect on the live feed. |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think unilateral is the right word here. Unidirectional, maybe?

The - should should be replaced by here and below.

@andersio andersio requested a review from mdiep December 12, 2016 15:40
README.md Outdated
* Control actions and responder chain events
* [Futures and promises](https://en.wikipedia.org/wiki/Futures_and_promises)
* [Key-value observing](https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/KeyValueObserving/KeyValueObserving.html) (KVO)
These primitives can be used to uniformly represent common Cocoa and generic programming patterns that are fundamentally an act of observation, e.g. delegate pattern, callback closures, notifications, control actions, responder chain events, [futures, promises](https://en.wikipedia.org/wiki/Futures_and_promises) and [key-value observing](https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/KeyValueObserving/KeyValueObserving.html) (KVO).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think "futures/promises" would read better than "futures, promises"

README.md Outdated
It is like a frame in a one-time live feed — seas of data frames carry the visual and audio data, but the feed would eventually be terminated with a special frame to indicate "end of stream".

#### `SignalProducer`: deferred work that creates a stream of value.
`SignalProducer` defers work — of which the output is represented as a stream of value — until it is started. For every invocation to start the `SignalProducer`, a new `Signal` is created and the deferred work is subsequently invoked.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

stream of value s

README.md Outdated

```swift
let channel: Signal<Programme, NoError> = tvStation.channelOne
channel.observeValues { programme in ... }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RAC uses US English, so this should be program.

@andersio andersio requested a review from mdiep December 13, 2016 02:07
README.md Outdated

#### `SignalProducer`: deferred work that creates a stream of value.
#### `SignalProducer`: deferred work that creates a stream of values.
`SignalProducer` defers work — of which the output is represented as a stream of value — until it is started. For every invocation to start the `SignalProducer`, a new `Signal` is created and the deferred work is subsequently invoked.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

stream of value is repeated in the body text too. 🙈

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caught another 🙈

@andersio andersio requested a review from mdiep December 13, 2016 02:09
@mdiep mdiep merged commit 8e649cb into master Dec 14, 2016
@mdiep mdiep deleted the andersio-readme-patch branch December 14, 2016 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants