Functional Reactive
Programming.
What does it solve?
Does it solve
things? Let’s find
out!
Netta Bondy
Senior FE Engineer @ Tikal
@_bondit_
https://medium.com/@NettaB
What is Reactive Programming?
Programming with Streams (Observables)
What is So Great about Reactive
Programming?
● Declerative representation of values changing over time
● Minimise Mutation
● Separation of concerns - emitters vs. subscribers
What is
Functional
Reactive
Programming?
● Mobx → includes
observables
● Rx → includes
observables and
opeartors
Reactive Programming
Functional-Reactive Programming
O
O
O
O
O O
The Problems
https://overreacted.io/the-elements-of-ui-engineering/
- Consistency
- Entropy
- Responsiveness
- Abstraction
The Problems
Consistency
click
!isLiked
isLikedmap
Consistency
isLiked
POST
map
response
comp compcomp
mergeMap
O O
switchMap
O O
Entropy - Consecutive Requests
isLiked
POST
switchMap
response
comp compcomp
Responsiveness - Optimistic Updates
isLiked
POSTswitchMap
response
comp compcomp
merge
Abstraction
isLiked
POSTswitchMap
response
comp compcomp
merge
The price
● Learning curve
● Commitment
● Architecture
Resources:
● This StackOverflow discussion, and particularly this answer
by Conal Elliot
● This excellent practical guide by Andres Staltz
● The documentation of Rx (not RxJS)
● A sample app built in FRP
Thank you
@_bondit_

Functional Reactive Programming - What does it solve? Does it solve things? Let's find out!