Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
RxSwift Xcoders Riga meetup
Search
Kristaps Grinbergs
January 23, 2019
Technology
2k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
RxSwift Xcoders Riga meetup
Kristaps Grinbergs
January 23, 2019
More Decks by Kristaps Grinbergs
See All by Kristaps Grinbergs
Decoding Smart Contracts: From Creation to NFT Integration
fassko
0
1k
From Web2 to Web3. A developer story.
fassko
0
1.4k
A journey from Swift to Solidity
fassko
0
1.5k
A journey into the SwiftUI world - Tech Stash by Mintos
fassko
0
1.6k
How to use SwiftUI for rapid development
fassko
0
1.7k
We need to talk about Websockets
fassko
0
3k
How to tame Core Animation
fassko
0
2.1k
The A - Z Guide Of iOS App Development
fassko
1
2k
RxSwift
fassko
0
100
Other Decks in Technology
See All in Technology
触りたくないデータに、どう触るか AI時代のRBACアクセスガバナンス
ivry_presentationmaterials
0
260
夫婦で子育てするための育児標準化
codmoninc
PRO
0
330
Running Kotlin + Quarkus with Lambda
nealle
1
3.7k
JAWS-UGグッズ職人仕事の流儀
kentapapa
0
100
Active Record Connection Adaptersにおける長年の課題に再び取り組む
yahonda
0
150
オントロジーって 結局なにもの? AI エージェントに「意味」を渡す知識設計の話
greenmidori
0
190
"優秀な誰か"の下位互換にならないために
yut0naga1_fa
1
1.8k
Local CI × GitHub Actions
gogutan
2
190
Getting Started with Google Antigravity
glaforge
0
300
Rust で関数型ドメインモデリング
takonda
0
140
PHPカンファレンス関西の招待状 / Invitation to PHP Conference Kansai
ykanoh
0
110
LambdaWebFunctionsを試してみた / exploring-lambda-web-functions
koukihosaka
1
340
Featured
See All Featured
ラッコキーワード サービス紹介資料
rakko
1
5.3M
Scaling GitHub
holman
464
140k
New Earth Scene 8
popppiees
4
2.7k
Become a Pro
speakerdeck
PRO
31
6.3k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
360
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Information Architects: The Missing Link in Design Systems
soysaucechin
1
1.2k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
31k
Into the Great Unknown - MozCon
thekraken
41
2.8k
Exploring anti-patterns in Rails
aemeredith
4
540
Bootstrapping a Software Product
garrettdimon
PRO
306
120k
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
1
750
Transcript
RxSwift Introduction to reactive programming Kristaps Grinbergs @fassko
RxSwift isn't KVO, ReactNative or ReactJS
About me • Swift developer at Qminder • BCompSci &
MComSci unfinished DmCompSci • > 15 years in IT • love open source
None
None
Agenda • What is Rx • RxSwift and building blocks
• Examples • Pros and Cons
Imperative programming • Saved state • Order of execution •
Side effects
In computing, reactive programming is a programming paradigm oriented around
data flows and the propagation of change. Wikipedia
Reactive programming is programming with asynchronous data streams
Reactive programming • Asynchronous • No saved state • Functional
• Responsive
ReactiveX An API for asynchronous programming with observable streams. •
Microsoft (Rx.NET) - 2009 • Supports many languages • RxSwift - 2015
Rx components • Observable • Observers • Schedulers
None
None
None
Observables Completed and Error will terminate the stream Next Completed
Error
Operators Filtering Transforming Combining
None
None
RxMarbles.com
None
UI bindings RxCocoa
None
None
None
None
Testing • Async XCTest with expectations • RxBlocking making it
synchronous • Using RxTest and custom Schedulers • https://www.raywenderlich.com/7408-testing-your-rxswift-code • https://www.youtube.com/watch?v=FgbTenGH-P0
+ Agile and reusable code Thread safety Eliminate state from
code Testing Well tested Error handling Large community and extensions Extends MVVM
- Steep learning curve Change previous practices Debugging Testing Over-reactive
Overhead
None
None
Resources • http://reactivex.io/ • https://github.com/ReactiveX/RxSwift • https://github.com/RxSwiftCommunity • http://adamborek.com/ •
http://rx-marin.com/ • RayWenderlich RxSwift book • Shai Michal presentations
None