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
Goの型安全性で実現する複数プロダクトの権限管理
ishikawa_pro
2
1.4k
メッセージングを利用して時間的結合を分離しよう #phperkaigi
kajitack
3
340
へんな働き方
yusukebe
6
2.8k
20260320登壇資料
pharct
0
120
実践ハーネスエンジニアリング #MOSHTech
kajitack
7
4.2k
Claude Codeログ基盤の構築
giginet
PRO
7
3.7k
OTP を自動で入力する裏技
megabitsenmzq
0
130
Geminiをパートナーに神社DXシステムを個人開発した話(いなめぐDX 開発振り返り)
fujiba
0
110
Java 21/25 Virtual Threads 소개
debop
0
280
Claude Code Skill入門
mayahoney
0
440
存在論的プログラミング: 時間と存在を記述する
koriym
5
510
飯MCP
yusukebe
0
370
Featured
See All Featured
My Coaching Mixtape
mlcsv
0
86
Leading Effective Engineering Teams in the AI Era
addyosmani
9
1.8k
VelocityConf: Rendering Performance Case Studies
addyosmani
333
24k
Practical Orchestrator
shlominoach
191
11k
Deep Space Network (abreviated)
tonyrice
0
96
Agile that works and the tools we love
rasmusluckow
331
21k
Crafting Experiences
bethany
1
94
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
230
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
1.9k
Rebuilding a faster, lazier Slack
samanthasiow
85
9.4k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.7k
Odyssey Design
rkendrick25
PRO
2
560
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]