Link
Embed
Share
Beginning
This slide
Copy link URL
Copy link URL
Copy iframe embed code
Copy iframe embed code
Copy javascript embed code
Copy javascript embed code
Share
Tweet
Share
Tweet
Slide 1
Slide 1 text
(Bonjour.)
Slide 2
Slide 2 text
Josh Abernathy @joshaber
Slide 3
Slide 3 text
No content
Slide 4
Slide 4 text
No content
Slide 5
Slide 5 text
Story time.
Slide 6
Slide 6 text
No content
Slide 7
Slide 7 text
No content
Slide 8
Slide 8 text
No content
Slide 9
Slide 9 text
Reactive Extensions (Rx)
Slide 10
Slide 10 text
Erik Meijer
Slide 11
Slide 11 text
ReactiveCocoa (RAC)
Slide 12
Slide 12 text
for a ReactiveCocoa Better World
Slide 13
Slide 13 text
PHILOSOPHY
Slide 14
Slide 14 text
Idea > Code
Slide 15
Slide 15 text
Not “easy”
Slide 16
Slide 16 text
But it’s good.
Slide 17
Slide 17 text
“A framework for composing and transforming sequences of values.”
Slide 18
Slide 18 text
“A framework for composing and transforming sequences of values.” — Scumbag Josh
Slide 19
Slide 19 text
It’s like a series of tubes...
Slide 20
Slide 20 text
“A sequence of values over time.”
Slide 21
Slide 21 text
“A sequence of values over time.” — Me, just now
Slide 22
Slide 22 text
RACSubscribable
Slide 23
Slide 23 text
RACSubscribable
Slide 24
Slide 24 text
RACSubscribable
Slide 25
Slide 25 text
RACSubscriber
Slide 26
Slide 26 text
Subscription Iteration
Slide 27
Slide 27 text
That’s it!
Slide 28
Slide 28 text
???
Slide 29
Slide 29 text
Async work
Slide 30
Slide 30 text
Network request
Slide 31
Slide 31 text
UI events
Slide 32
Slide 32 text
KVO
Slide 33
Slide 33 text
???
Slide 34
Slide 34 text
KVO property = UI events = Network request = Async work = ??? = Subscribables
Slide 35
Slide 35 text
Shared Vocabulary
Slide 36
Slide 36 text
Shared Toolset
Slide 37
Slide 37 text
Composable
Slide 38
Slide 38 text
It’s all about The Operators
Slide 39
Slide 39 text
Compose Combine Transform
Slide 40
Slide 40 text
No content
Slide 41
Slide 41 text
No content
Slide 42
Slide 42 text
PHILOSOPHY
Slide 43
Slide 43 text
No content
Slide 44
Slide 44 text
Expressive
Slide 45
Slide 45 text
Expressive (But dense.)
Slide 46
Slide 46 text
No content
Slide 47
Slide 47 text
Code Locality
Slide 48
Slide 48 text
No content
Slide 49
Slide 49 text
Less State
Slide 50
Slide 50 text
No content
Slide 51
Slide 51 text
It’s all about The Operators
Slide 52
Slide 52 text
It’s all about The Operators (There are a lot of operators.)
Slide 53
Slide 53 text
-select: Hi to all HI ALL TO
Slide 54
Slide 54 text
-where: A B A A A
Slide 55
Slide 55 text
+merge:
Slide 56
Slide 56 text
-throttle:
Slide 57
Slide 57 text
-selectMany:
Slide 58
Slide 58 text
-selectMany:
Slide 59
Slide 59 text
-selectMany: “When I get a value, subscribe to the next subscribable.”
Slide 60
Slide 60 text
-selectMany: “When I get a value, subscribe to the next subscribable.”
Slide 61
Slide 61 text
-selectMany: Look, it’s about chaining ok?
Slide 62
Slide 62 text
No content
Slide 63
Slide 63 text
-takeUntil:
Slide 64
Slide 64 text
-catch:
Slide 65
Slide 65 text
Errors? What errors?
Slide 66
Slide 66 text
-catch:
Slide 67
Slide 67 text
Where do subscribables Come from?
Slide 68
Slide 68 text
Hot vs. Cold
Slide 69
Slide 69 text
Honey badger don’t care Hot: Everyone gets the same thing
Slide 70
Slide 70 text
Honey badger most certainly does care Cold: Everyone’s separate
Slide 71
Slide 71 text
PHILOSOPHY
Slide 72
Slide 72 text
So Lazy.
Slide 73
Slide 73 text
Subscribing can have side effects
Slide 74
Slide 74 text
-retry:
Slide 75
Slide 75 text
-repeat:
Slide 76
Slide 76 text
Where do subscribables Come from? No seriously,
Slide 77
Slide 77 text
Cold: +createSubscribable:
Slide 78
Slide 78 text
No content
Slide 79
Slide 79 text
No content
Slide 80
Slide 80 text
Hot: Subjects
Slide 81
Slide 81 text
No content
Slide 82
Slide 82 text
No content
Slide 83
Slide 83 text
RACSubject
Slide 84
Slide 84 text
RACAsyncSubject RACSubject
Slide 85
Slide 85 text
RACAsyncSubject RACSubject RACReplaySubject
Slide 86
Slide 86 text
RACAsyncSubject RACSubject RACReplaySubject RACBehaviorSubject
Slide 87
Slide 87 text
No content
Slide 88
Slide 88 text
-defer: “I’ll give you a subscribable when someone subscribes.” Hot to Cold
Slide 89
Slide 89 text
-publish/-multicast: “Funnel everything through one subscription.” Hot to Cold
Slide 90
Slide 90 text
PHILOSOPHY
Slide 91
Slide 91 text
Not “easy”
Slide 92
Slide 92 text
But it’s good.
Slide 93
Slide 93 text
github.com/github/ReactiveCocoa More Info: Reactive Extensions (Rx) @joshaber
Slide 94
Slide 94 text
(Fin.)