当前位置:网站首页>Investing in a good navigation framework from the beginning of the jetpack compose tutorial will help you save a lot of migration work later

Investing in a good navigation framework from the beginning of the jetpack compose tutorial will help you save a lot of migration work later

2022-06-24 10:58:00 Knowledge fatness

since Google announce Jetpack Compose Of 1.0 About a year has passed since the stable version , This means that developers can now use their UI Toolkits create applications that can be used for production , however , Should you do this ? please remember , What I am saying in this article is purely my point of view , So if you disagree with anything , Please comment or Twitter Tell me

as time goes on ,“ Stable ” The word has been misused many times , And for Jetpack Compose It feels right . Even if they ( Google ) Said it was ready for production , When you use it for large business projects , You should really do your research , For example, check for active problems on the problem tracker , Write a sample application to see how it performs , That is, whether the toolkit provides the necessary widgets ? Will it affect the size and performance of the published application ? most important of all , Does it affect developer productivity and tool support ? It doesn't just apply to Jetpack Compose, And for any library you want to use / frame . What they use to escape is not called “ alpha ” One of the technologies is the introduction of @Experimental Mark some features as unstable comments ( It's not that these functions don't work , It is API May change , This will destroy binary compatibility with previous versions ). In choosing a new framework to write UI when , You really should think about these things .

So when can it be stably used for production purposes ? Don't get me wrong , You can still use it , But if you use it in applications used by millions of users , You should know some questions . please remember , Existing based on View Your toolkit requires 10 Years to mature , So actually we should expect Jetpack Compose At least about 3-4 Years to catch up and become stable , In order to be adopted by the team on a larger scale . Even today , If you see ,Android Of Kotlin The adoption rate is about 70%,

原网站

版权声明
本文为[Knowledge fatness]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/175/202206240943463501.html