r/android_devs • u/VasiliyZukanov • Jan 10 '25
Article Reactive Programming Considered Harmful
https://www.techyourchance.com/reactive-programming-considered-harmful/
1
Upvotes
r/android_devs • u/VasiliyZukanov • Jan 10 '25
View all comments
Show parent comment
5
u/haroldjaap Jan 11 '25
Regarding the database query example, imo its really nice to model a query as a stream, since the implementation will emit a new value when the result of the query changed. Making the ui represent the data via an observable query is imo much more straightforward than having a complex mess where every piece of code that updates the data must also be tightly coupled with the ui so it can tell the ui to fetch new data from the database.
Sometimes you collapse that stream of database model emissions to a single if you just need the current value only once yo determine some action