💾 Archived View for gemini.bortzmeyer.org › fosdem › event-11538.gmi captured on 2022-04-29 at 01:21:23. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2021-12-17)
-=-=-=-=-=-=-
Raul Hernandez Lopez
Type devroom
Unidirectional Data Flow in action: suspend functions, Flow & StateFlow to make our Reactive apps prepared for Declarative UIs.
Starts on day 2 (2021-02-07) at 16:40 (Brussels time, UTC+1) in room Kotlin (duration 00:45)
Matrix room #kotlin:fosdem.org
Unidirectional Data Flow (UDF) is a powerful technique that enhances our Reactive apps to work deterministically.
Synchronising our views with fresh data was never an easy task to accomplish. For this same reason, there are mechanisms that support us to make that possible. Surely callbacks were a thing in the past, however, they were an antipattern themselves due to the lack of readability. Now we don't need to deal with them any more thanks to Kotlin Coroutines.
Getting ready for Declarative UIs with Kotlin Coroutines and friends is indeed feasible, now we could use suspend functions, Flow and in the end StateFlow would make our Reactive apps ready for Declarative UIs.
Let’s define a single entry point, receive data, transform it into a state, and render each state. Let’s get our apps ready for a Declarative UI world on Android.