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
RxSwift Xcoders Riga meetup
Search
Kristaps Grinbergs
January 23, 2019
Technology
1.8k
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
830
From Web2 to Web3. A developer story.
fassko
0
1.2k
A journey from Swift to Solidity
fassko
0
1.3k
A journey into the SwiftUI world - Tech Stash by Mintos
fassko
0
1.4k
How to use SwiftUI for rapid development
fassko
0
1.5k
We need to talk about Websockets
fassko
0
2.8k
How to tame Core Animation
fassko
0
1.9k
The A - Z Guide Of iOS App Development
fassko
1
1.8k
RxSwift
fassko
0
89
Other Decks in Technology
See All in Technology
ZOZOTOWNの進化と信頼性を両立する負荷試験
zozotech
PRO
2
250
壊して学ぶAWS CDK: そのcdk deployで消えるもの、残るもの
k_adachi_01
1
410
第67回コンピュータビジョン勉強会CVPR2026読会前編
tsukamotokenji
0
150
「AIに依存している」と 「AIを使いこなしている」の違い
k8yasuma
0
120
AIレビューはどこまで任せられるのか?自動化と人が背負うレビューの境界
sansantech
PRO
3
1.1k
最適な自走を最小限の支援で — M&Aで拡大する組織で少人数SREが挑んだ1年 / SRE NEXT 2026
genda
0
1.5k
企業でAWS Organizationsを動かすための組織設計の考え方
nrinetcom
PRO
1
110
ゴールデンパスは敷いただけでは道にならない ─ 企画部門のエンジニアが技術標準を事業価値に変えるまで
mhrtech
1
230
SRE本の知られざる名シーン / The Hidden Gems of Google SRE Book
nari_ex
1
420
非定型なドキュメントを効率よくリファクタする 〜えぇ!?仕様書27本の移行が1日で終わったって!?〜
subroh0508
2
560
プロダクト開発組織の現在地(Ver.2026/07) / product-organization
kaonavi
0
110
GoでCコンパイラを作った話
repunit
0
110
Featured
See All Featured
Crafting Experiences
bethany
1
220
What does AI have to do with Human Rights?
axbom
PRO
1
2.2k
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
660
Java REST API Framework Comparison - PWX 2021
mraible
34
9.5k
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
190
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
2k
Reality Check: Gamification 10 Years Later
codingconduct
0
2.2k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.3k
SEO for Brand Visibility & Recognition
aleyda
0
4.6k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
23k
Ten Tips & Tricks for a 🌱 transition
stuffmc
0
150
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