Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Intro to Functional Reactive Programming with S...
Search
Josh Avant
July 07, 2016
Programming
1
360
Intro to Functional Reactive Programming with Swift
Talk given at CocoaHeads LA at Victorious office, on 7/7/2016
Josh Avant
July 07, 2016
Tweet
Share
Other Decks in Programming
See All in Programming
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
200
デミカツ切り抜きで面倒くさいことはPythonにやらせよう
aokswork3
0
220
Model Pollution
hschwentner
1
190
理論と実務のギャップを超える
eycjur
0
120
Advance Your Career with Open Source
ivargrimstad
0
460
オープンソースソフトウェアへの解像度🔬
utam0k
12
2.4k
CSC509 Lecture 05
javiergs
PRO
0
300
2分台で1500examples完走!爆速CIを支える環境構築術 - Kaigi on Rails 2025
falcon8823
3
3.5k
Back to the Future: Let me tell you about the ACP protocol
terhechte
0
140
GitHub Actions × AWS OIDC連携の仕組みと経緯を理解する
ota1022
0
250
どの様にAIエージェントと 協業すべきだったのか?
takefumiyoshii
2
640
開発生産性を上げるための生成AI活用術
starfish719
3
390
Featured
See All Featured
Build your cross-platform service in a week with App Engine
jlugia
232
18k
Rails Girls Zürich Keynote
gr2m
95
14k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
229
22k
Optimizing for Happiness
mojombo
379
70k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Side Projects
sachag
455
43k
Testing 201, or: Great Expectations
jmmastey
45
7.7k
Rebuilding a faster, lazier Slack
samanthasiow
84
9.2k
Scaling GitHub
holman
463
140k
Making Projects Easy
brettharned
119
6.4k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
15
1.7k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
285
14k
Transcript
Intro to Func%onal Reac%ve Programming with Swi' by Josh Avant
@joshavant h"ps:/ /iamjo.sh
What is Func,onal Reac,ve Programming?
Func%onal Reac%ve Programming
Func%onal Reac%ve Programming Func%onal Programming
Func%onal Reac%ve Programming Func%onal Programming Reac%ve Programming
Func%onal Programming SOURCE: h*ps:/ /commons.wikimedia.org/wiki/File:Func>on_machine2.svg
Func%onal Reac%ve Programming Func%onal Programming Reac%ve Programming
Reac%ve Programming Observing streams of data, transforming them, and binding
the result to some outlet.
Streams Text Input, Form Comple1on, Network Requests, Delega1on, No1fica1ons
Transforma)ons map it, filter it, sort it, split it, insert
it, remove it, prefix it, suffix it, flatten it, replace it
Streams + Transforma.ons Demo
Bindings !: setText, setHidden, setEnabled, setImage, updateWithJSON, configureWithFoo
Demo UIDemoMain(Process.argc, Process.unsafeArgv, nil, "DemoDelegate")
Just the beginning! • Common FRP-able pa0erns: • Delegates •
Perfect first experiment with FRP! • API clients • User session state managers • Holy Grail: MVVM architecture
Framework Op,ons • RxSwi' • Pro: Extremely popular + huge
community • Con: Big dependency • Juice is worth the squeeze! • ReacCveCocoa • PromiseKit, BrightFutures, Interstellar • Similar, but different idea + lighterweight
?s Sample Code: h#ps:/ /github.com/joshavant/RxSignUpForm ...add'l ques+ons + talk feedback:
@joshavant
[email protected]