当前位置:网站首页>Embrace declarative UI
Embrace declarative UI
2022-07-19 04:48:00 【jjf19891208】
I mainly do APP Developed , I have been in contact with small program development more or less before , Read about angular vue as well as Thymeleaf And other front-end frameworks , In order to improve UI Development efficiency , All kinds of attempts have been made !
Android Application layer usage Java To write , Its UI API Design is also a reference Java SWT,Android View The amount of code is also amazing , With state View Manage your own state , In imperative programming, process with state UI Components also need special care , Code changing component state may inadvertently change data , Some system components also have surprise gift packs , such as Android Of RadioGroup, call RadioGroup Of check Method to select a RadioButton, Will trigger 3 Time onCheckChanged event , To improve the development experience ,Google Also launched many expansion libraries , But it has always been based on tradition UI System , Can't better practice MVVM Pattern , and WEB End declarative UI Already ahead , This is why many people use JS do APP Development , Besides good development experience , And cross platform , Although the performance and volume have been roast , There are still many people who choose JS, I stubbornly adhere to the original development ,Google First of all Flutter Practice declarative UI, however Dart The language ecosystem has been tepid ,Android The system version follows Java Version bundle , New version of the Java Many new features of are not available ,Kotlin The emergence of , I have to admire it here Kotlin The foresight of the team , This language is similar to Dart Born in the same year , But it's completely compatible Java, Its grammar is also quite concise , When you catch Android After the free ride , Mixing ratio Dart It is better to ,Spring Boot Also accepted Kotlin,Android The system version does not follow Kotlin Version bundle , Plus its language expansion ability and simplified grammar ,Google stay 2019 Launched in, based on Kotlin The declarative form of UI:Compose, declarative UI The main feature of is to create UI、Controller Model Follow View Strictly separate 、 Auto update , Maybe I'm not used to it at first , But don't be too happy after getting familiar with it !
Recent contact iOS Development , Basic entry , Its traditional UI The way , I'm really not used to the layout , I didn't get it iOS Constraints , Just give up , Since the official has launched a declarative UI:SwiftUI, Why bother yourself ! I experienced SwiftUI after , Feeling Android、iOS The declarative form of UI It doesn't make much difference in use , It is simple and clear to use , Development efficiency is greatly improved , Don't worry about the compatibility of screen size !
Changing habits is really uncomfortable , But still embrace new things , Officials continue to push through the old and bring forth the new , We should also keep learning , Improve yourself , There are differences in programming languages , But good programming ideas can be universal , The improvement of language is to realize better programming ideas , The ultimate goal is to improve efficiency !
Wordy end !
边栏推荐
- 老年祝福火爆短视频微信小程序源码下载支持流量主
- Using everything to clean up junk files
- 2022 latest version of campus errand applet source code
- Emqx pressure test tread pit for your reference
- 谷歌浏览器截全图小技巧
- 知识图谱de构建与应用(七):大规模知识图谱预训练
- Wildfly: how to call EJBs from EJBs located in another application
- 【Lipschitz】基于matlab的Lipschitz李氏指数仿真
- Masm32 writer
- [vuforia] simple logic of image recognition
猜你喜欢
![[Unity] Input.gettouch[index]的index](/img/9d/ec0e4c9e6b1bb25976357469fe037f.png)
[Unity] Input.gettouch[index]的index

赚钱大师小程序【最新版5.9.9】商城/佣金即时提现/分销推广/话费充值/美团饿了么外卖

thinkphp 官网教程

新生任务-5

异或和加密方式的解密的复现

'ionic' is not an internal or external command, nor is it a runnable program or batch file.

Tasking 新建 AURIX TC37X demo 工程

渗透测试 10 --- 扫描 web目录 (dirb、wfuzz、wpscan、nikto)

Introduction to redis

2022 latest version of campus errand applet source code
随机推荐
一款好用的网络骗子举报系统无加密版本源码
【TA-霜狼_may-《百人计划》】美术2.1 DCC工具链与引擎工具链
Rk1126 realizes picture in picture function picture in picture for rk 1126
Tasking new aurix tc37x demo project
Reproduction of XOR and encryption decryption
tidb 学习
PY3 redis general call
MySQL one line to many lines (split according to specific symbols)
知识图谱de构建与应用(六):知识图谱的存储、服务与质量
【TA-霜狼_may-《百人计划》】基础渲染光照介绍(一)
北斗时钟服务器(NTP服务器)让高考时间更加精准
MySQL表的约束(基础篇)
minio安装部署及使用
Real time Bi (IV) low cost data quasi real time processing idea
探索:制药厂系统网络时钟同步(NTP时间同步服务器)
常用postgresql数据操作备忘(不定时更新)
Tidb learning notes [preliminary]
删除快照出现:删除快照时出错: 字典问题
2022 latest version of campus errand applet source code
用FastApi进行WEB开发