当前位置:网站首页>Analyses the mainstream across technology solutions
Analyses the mainstream across technology solutions
2022-08-05 04:13:00 【speedoooo】
write once, run everywhere
Android applications are written in Java or Kotlin, iOS applications are written in Objective-C or Swift, and web applications are written in HTML/CSS/JavaScript.When it is necessary to develop applications that support multiple terminals, each terminal needs to be independently developed and tested until it is launched.
In order to solve the problem of multi-terminal independent development, cross-terminal technology is favored.
There are so many scenarios that the front-end needs to deal with at the moment, such as android, ios, pc, smart watch, car, smart TV, etc. When certain scenarios are very similar, we hope to use the least development cost to achieve the mostGood effect, rather than requiring a separate set of manpower for each end to maintain.
So in today's cross-end solutions, such as the most well-known react native, flutter, electron, weex, small programs, etc., do they have any common characteristics, and can we find them?In essence, this is the question that this article wants to talk about.
I. Mainstream cross-end implementation scheme
1. Web-based H5 Hybrid solution
In fact, the browser is a cross-end implementation, because you only need to enter the URL, you can open your web page on any end browser.So, if we embed the browser into the app, and then hide the address bar and other content, can we embed our web page into the native app?And this browser embedded in the app, we call it webview , so as long as a certain end supports webview , then it can use this scheme to cross-end.
At the same time, this is also a solution with the least development cost, because this is actually writing a front-end interface, which is not much different from developing ordinary web pages.
2. Framework layer + native rendering scheme
The typical representative is react-native. Its development language is js, and the syntax used is exactly the same as that of react. In fact, it can be said that it is react, which is our framework layer.Unlike general react applications, it needs to use native capabilities to render, and components will eventually be rendered as native components, which can bring a better experience to users.
3. Framework layer + self-rendering engine scheme
The difference between this scheme and the above is that it does not directly borrow native capabilities to render components, but uses the lower-level rendering capabilities to render components by itself.Obviously, in this way, the link will be shorter than that of the above scheme, so the performance will be better, and at the same time, it will be more reliable than the previous scheme in ensuring the consistency of multi-terminal rendering.A typical example of such a framework is flutter.
4. Mini Program Cross-End Solution
As we all know, one thing has become very popular in recent years: Mini Programs. Now many big manufacturers have begun to enter Mini Programs, but now Mini Program technology is no longer exclusive to BAT, and Mini Programs have already been launched on the market.Container technology solution, after integrating the applet container SDK, whether it is iPhone, Android, Flutter, React Native, computer, TV, car or IoT device, it can enable different applications or terminal devices to quickly have the ability to run appletMoreover, the same applet scenario can be distributed to different terminals to run, and there is no need to write different codes for different terminals. This kind of applet container technology can learn from FinClip .

Second, what are the common cross-end scenarios
- Across PC.For example across Windows Linux Macos
- Across multiple Native platforms: for example, across Android and iOS
- Cross-launching APPs: With the increasing number of super APPs, many businesses need to deploy the same business scenario in multiple APPs.
- Cross Web, Mini Programs, QuickApps, etc.: In fact, it is similar to Cross APP, but the Mini Program itself is a closed ecology controlled by each company, so there is a demand for one development to adapt to multiple closed ecology.

Three, cross-end technical solution selection
Cross-end technical solutions focus on the following four aspects: R&D efficiency, dynamics, multi-end consistency, and performance experience.
R&D Efficiency: Maximize code reuse, reduce the adaptation workload for multi-terminal differences, and reduce development costs. Even after the business is launched, it can be maintained at low cost and speed up the development of new functions.Iterative speed, which is an ongoing efficiency gain.
Dynamic: It can realize rapid business iteration, which is not only a requirement of cross-platform technology, but also a must-have for native technology, which is also an important assessment point for evaluating cross-end technology.
Multi-terminal consistency: Good products are often designed with a unified overall style in the multi-terminal UI design. Therefore, after the business side adopts the native independent development, it will take a lot of extra time to modify the UI to ensure thatMulti-end consistency; it can be seen that the independent implementation of the development method at each end brings about a lag in efficiency, not only the workload of developing a code for Android and iOS, but also the consistent alignment of the two-end UI.
Performance experience: Generally, cross-end technical solutions have multiple advantages of the above, but in terms of performance, they are worse than native smoothness.It is reasonable to sacrifice part of the experience in exchange for improved efficiency. Just imagine that a cross-platform technical solution can achieve these four points at the same time, then the native technology may have withdrawn from the historical stage, and it has long been the world of cross-platform technology, so every cross-platform technologyThe performance of the platform technology becomes the core indicator.
Four. Ending
For business technology teams, the essence of cross-end is to improve efficiency.Proposing new solutions in response to new changes is one aspect, and more importantly, how to make this efficiency improvement really long-term and stable, so that our efficiency improvement will not become a jump from one new solution to another.
Cross-end demands and corresponding solutions will still be in frequent changes, and there will not be a solution to all cross-end problems.And the relatively unchanged part is worth investing in for the sake of long-term stability.
边栏推荐
- AUTOCAD——标注关联
- Four-digit display header design
- 商业智能BI业务分析思维:现金流量风控分析(一)营运资金风险
- UE4 在游戏运行时更改变量 (通过鼠标滑轮来更改第一人称角色的最大行走速度)
- 4T硬盘剩余很多提示“No space left on device“磁盘空间不足
- How to wrap markdown - md file
- Ali's local life's single-quarter revenue is 10.6 billion, Da Wenyu's revenue is 7.2 billion, and Cainiao's revenue is 12.1 billion
- 炎炎夏日教你利用小米智能家居配件+树莓派4接入Apple HomeKit
- [BJDCTF2020] EasySearch
- [CISCN2019 华东南赛区]Web11
猜你喜欢

How to discover a valuable GameFi?

UE4 更改组件变量 (以修改第一人称角色模板的最大行走速度和跳跃高度为例)

UE4 opens doors with overlapping events

Growth-based checkerboard corner detection method

Develop your own node package
![【 8.4 】 source code - [math] [calendar] [delete library 】 【 is not a simple sequence (Bonus) 】](/img/b5/716627b370e489ccf320a86540f7ba.png)
【 8.4 】 source code - [math] [calendar] [delete library 】 【 is not a simple sequence (Bonus) 】

阿里本地生活单季营收106亿,大文娱营收72亿,菜鸟营收121亿
![[SWPU2019]Web1](/img/06/36e69a2d7d5475a6749a7d81edf50f.png)
[SWPU2019]Web1

概率论的学习和整理8: 几何分布和超几何分布

多御安全浏览器新版下载 | 功能优秀性能出众
随机推荐
C++ core programming
bytebuffer 内部结构
35岁的软件测试工程师,月薪不足2W,辞职又怕找不到工作,该何去何从?
The most effective seven performance testing techniques of software testing techniques
Solana NFT开发指南
Hard power or soft power, which is more important to testers?
新人如何入门和学习软件测试?
1007 Climb Stairs (greedy | C thinking)
[BJDCTF2020] EasySearch
七夕节代码表白
使用IDEA连接TDengine服务器
Index Mysql in order to optimize paper 02 】 【 10 kinds of circumstances and the principle of failure
NPDP证书含金量高吗?跟PMP相比?
JeeSite新建报表
【8.3】代码源 - 【喵 ~ 喵 ~ 喵~】【树】【与】
Is the NPDP certificate high in gold content?Compared to PMP?
flink读取mongodb数据源
Develop your own node package
Based on holding YOLOv5 custom implementation of FacePose YOLO structure interpretation, YOLO data format conversion, YOLO process modification"
炎炎夏日教你利用小米智能家居配件+树莓派4接入Apple HomeKit