一种新型的Android碎片化

It has been about 5 years since I have been able to spend a dedicated chunk of time working solely on Android development. One of our competitors shut down their product a few months ago, causing a huge inflow of customers all asking for an Android Chat SDK. Unfortunately, our Android team was behind on schedule. #startuplife Long story short, I had the pleasure of doing some Android development again.

很高兴看到生态系统有了很大的改善。 约束布局确实易于使用,并且性能比旧布局要好得多。 新的livedata系统减少了大量样板代码。 Room是SQLlite的一个很好的抽象,并且viewmodels(虽然很简单)的概念非常优雅。

但是,一种类型的碎片变得更加糟糕。 如果您是图书馆作者,则现在必须考虑:

  • Java或KotlinJava回调,Android RX观测对象和/或Kotlin协程体系结构组件:MVVM,MVI,MVP,MVP还是MVC?保卫者AndroidX

Yes, you can argue that Java and Kotlin are compatible. At the end of the day, you still have 2 sets of docs and halve the people that use your library won’t be happy with the language you choose. If you look at the stats Kotlin still seems much smaller for new apps than Java: https://www.appbrain.com/stats/libraries/details/kotlin/kotlin.

很高兴看到Room和Retrofit如何处理回调与可观察到的差异。 如果您查看iOS开发,虽然碎片化的机会要少得多。

在过去的五年中,Android开发取得了很大进步。 对于图书馆作者而言,碎片化变得更加严重。 我想知道为什么Google会有这种观望态度而不是仅仅确保有一种最好的方式来做所有这些事情...

from: https://dev.to//tschellenbach/a-new-kind-of-android-fragmentation-2hgp

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值