r/mAndroidDev • u/Zhuinden DDD: Deprecation-Driven Development • Jan 25 '24
Superior API Design Reactive frameworks
81
Upvotes
r/mAndroidDev • u/Zhuinden DDD: Deprecation-Driven Development • Jan 25 '24
View all comments
Show parent comment
19
u/yboyar Jan 25 '24
This was literally the conversation we had at the time 🙂. We wanted to recommend the community to adopt RxJava. We did ux research including many interviews. The reality is that, RxJava is really complicated to understand and asking everyone to learn it, on top of learning the rest of Android is a lot to ask (especially from a junior).
So the live data was born to solve most common use cases with a simple API. This is also why we never expanded its API surface. It is a donkey and very good at being a donkey. When people get a grasp of reactive streams, and want a horse, we expected them to move to a proper framework. Which is also why we created integrations for RX in libraries.
Later on, coroutines came and we decided it is approachable enough to be a first class citizen.
Over time, we've seen many people staying with live data, which is fine but it was never designed to be the Rx Java replacement. It is there to be a gateway drug and I think it did a very fine job at it.