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
【卒業研究】会話ログ分析によるユーザーごとの関心に応じた話題提案手法
momok47
0
200
Implementation Patterns
denyspoltorak
0
290
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
590
疑似コードによるプロンプト記述、どのくらい正確に実行される?
kokuyouwind
0
390
なるべく楽してバックエンドに型をつけたい!(楽とは言ってない)
hibiki_cube
0
140
CSC307 Lecture 01
javiergs
PRO
0
690
AI巻き込み型コードレビューのススメ
nealle
2
370
MUSUBIXとは
nahisaho
0
140
責任感のあるCloudWatchアラームを設計しよう
akihisaikeda
3
180
HTTPプロトコル正しく理解していますか? 〜かわいい猫と共に学ぼう。ฅ^•ω•^ฅ ニャ〜
hekuchan
2
690
AIで開発はどれくらい加速したのか?AIエージェントによるコード生成を、現場の評価と研究開発の評価の両面からdeep diveしてみる
daisuketakeda
1
2.5k
AtCoder Conference 2025
shindannin
0
1.1k
Featured
See All Featured
brightonSEO & MeasureFest 2025 - Christian Goodrich - Winning strategies for Black Friday CRO & PPC
cargoodrich
3
100
Fashionably flexible responsive web design (full day workshop)
malarkey
408
66k
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
430
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2k
How To Stay Up To Date on Web Technology
chriscoyier
791
250k
A better future with KSS
kneath
240
18k
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
1
53
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
19k
Designing Experiences People Love
moore
144
24k
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
190
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
0
260
Ethics towards AI in product and experience design
skipperchong
2
190
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]