in a reactive-ish Android app how would I use arro...
# arrow
d
in a reactive-ish Android app how would I use arrow to represent the state and update views as the state changes ? (I am used to reactive programming where each view "binds" to the state with combine/subscribe)
j
@Davide Bertola If you haven't already, look into Arrow fx Streams. An application that's already reactive would translate well to Streams.
The 47 Degrees Academy's FP in Kotlin course provides a solid introduction to fx Streams, among other topics. I found it very valuable. There's a session coming up in December. https://www.47deg.com/academy/2020-12-10-fp-in-kotlin-with-arrow-course/ There's also another course designed specifically for Android, but no sessions scheduled at this time. I've taken that too. Also excellent.
d
hm
seems more about interoperating with streams, i was hoping for a completely different way of doing things in arrow maybe, I guess I am tired of reactive programming
j
Tired of reactive programming or tired of its implementation and API limitations in RxJava?
d
unsure
j
Arrow fx Streams aren't Java Streams, in case that's not evident.
In my experience, there's no better way to model Android apps than as reactive streams. But I wouldn't choose RxJava anymore for this, since Arrow fx Streams provides a better mechanism that is functional and works over
suspend
.