introduction
2020
year04
month04
It is destined to be an extraordinary day.
Pestilence, national mourning, everything has no color except the five-star red flag. All the people mourn, the whole network is grey.
Turn on the phone, most of the software is gray, or the user has never updatedAPP
In this case. As programmers, suppose there is such a requirement, how can we implement it?
explore
Native development
Native development is to useJava / Kotlin / OC / Swift
And combined with the official suite to developAndroid/iOS
Application.
Obviously, if you want to use native development technology,APP
Gray needs to change the original code, repackage, release, audit, put on the shelf.
By the time this series is passed, Qingming will be over.
Native application performance is best, but requiresAndroid / iOS
Both ends of the development, development efficiency is low, and because of Apple’s audit mechanism, the application on the shelf update is also relatively time-consuming.
In the process of competition among major enterprises, some financial enterprises share data, and early launch of products means early occupation of user groups. Under the premise of low performance requirements, it is not recommended to use native development.
H5 application
becauseWeb
Natural cross platform, developmentH5
Application, can reduceAndroid / iOS
The development cost of both ends, and when the application is updated, it can be directly published to the foreground server.
Direct additional bankjs
To determine whether the date is2020-04-04
It is to add a gray filter to the root tag, and secretly deploy it to the server before the festival. The access during the festival will change, and it will return to normal after the festival.
H5
Although the development efficiency is high, but the performance is not good.
Hybrid applications
Native development andH5
Combined with development, it needs to be used when efficiency is requiredH5
Call the system levelAPI
And use native when performance is needed.
Hybrid application belongs to the ideal state of development, but it is difficult to develop, but it is also the mainstream development architecture.
NewsAPP
This is a classic hybrid application. When you click on a news, it is actually a web page. Otherwise, the background cannot control the layout.
React Native
Due to the difficulty of hybrid application development, many enterprises adopt itReact Native
conductAPP
development.
useReact
Technology stack code, take into accountAndroid / iOS
Both ends can be usedJavaScript
Write common components and compile them into native code, taking into account the development efficiency and performance. But if you encounterAndroid / iOS
It takes a long time to develop and adapt to different situations.
meanwhileReact Native
The hot update can also solve the problem of slow on shelf audit.
But there are also many problems, packaging needsReact
Related packages, resulting inAPP
It’s easy to take dozens of bags after packingM
It’s big.
At the same time, because of the officialReact Native
The library needs version adaptation, so it looks like the latestiPhone
This kind of adaptation needs to waitReact Native
Official updates.
one flaw cannot obscure the splendor of the jade,React Native
It is still one of the mainstream development technologies.
Other technology stacks
Alipay is a giant in the industry (although I love to pay with WeChat, but Alipay really does).APP
Inside, it is far more than payment. For example, modules such as security and log have been accumulated for many years.
Suppose I want to develop a secure payment product, but it does not have such strong technology accumulation. In order to ensure security, we will directly purchase the security framework from ant financial services, and the official will provide technical support.
summary
2020-04-04
History will remember today!