Before we begin, I would like to wish you all a happy New Year. I wish you a smooth work, good health and a happy family in the New Year. I wonder how you are enjoying your New Year’s holiday. Personally, I think I’ve lived a full life. First, I climbed the mountain, and then had a rest for a day. On the last day, I made a wechat mini program at home to practice. Sometimes, programming on vacation is a way to cultivate your feelings, because programming is an art after all.
Before talking about my wechat small program development and experience journey, let’s review Zhang Xiaolong’s speech in wechat open class.
What is wechat applets
Xiao-long zhang think all applications should be a kind of everywhere, but can access at any time of a kind of state, and the small program is a kind of don’t need to download, install, use the application, it implements the within easy reach of the dream, users scan or search will be able to open the application, also realized the finished the walk, the user need not install too many applications, applications are available, But there is no need to install and uninstall.
Applet usage scenarios
From the above we can see the characteristics of the small program: no installation, at your fingertips, use up and go, no uninstall. And about the use of small program scenario, Zhang Xiaolong cited such an example: Now actually, there is no electronic ticket, all the people go by car to the scene to the bus station to buy a ticket, this is a very painful process, are you going to line up to buy tickets, then go to the car, they want to use small program to solve this problem, you just need to stand in each car a qr code, sweep the qr code on all people to the bus station to buy tickets of small procedures, And then buying tickets directly through the miniprogram, so that the ticket window doesn’t exist, WHICH I think is a very good idea for the miniprogram. And when waiting for the bus station inside the bus station, want to know when the next bus will come, this time just scan the two-dimensional code of the bus station, start the small program of the bus station can see when the next bus will come, this is also a particularly typical small program scene.
By analogy, it can be imagined that if many physical stores adopt wechat mini programs, shopping orders will be much faster? In fact, many people have some questions, said: I directly scan the TWO-DIMENSIONAL code to pay the bill is not on the line? Why go through the applets? You think, buy ticket, need in the ticket system registration, qr code scanning only pay just speeded up to pay bills, but still need to brush your id card to register, the conductor like shopping, many entities large companies have their own invoicing system, if with a small program, docking the invoicing system, a key pay for shopping, even buyer information can also follow to submit, Wouldn’t that be convenient? All in wechat internal implementation, do not have to download redundant App, is not a lot of mobile phone easier.
Entry on applets
Zhang Xiaolong once said: PC Internet entrance in the search bar, mobile Internet entrance in the TWO-DIMENSIONAL code. Now think about the TWO-DIMENSIONAL code is indeed full of streets, now to eat, buy things, should be most of the habit of scanning two-dimensional code? Now major shopping malls and supermarkets have already supported wechat and Alipay payment.
Of course, the entrance of the small program is also in the TWO-DIMENSIONAL code. And there won’t be an app store for people to download. The initiation and use of these small programs are initiated by the users themselves, which is wechat’s restraint. This is a typical decentralized approach without entrance, because wechat will never do entrance, ranking, recommendation, Tencent is Tencent, he is not Baidu. What I think is more fun and personal is that the mini app account has no fans, only visits, and since fans are not the same as visits, there is no need to subscribe. Applets also can’t push messages and only provide limited service access. This prevents small programs from harassing users. This humanization is also one of the reasons for the success of wechat.
Talk about the applet experience
A few days ago, after watching wechat open class, my friend made a wechat small program with his company account, I experienced a, how can I say? It feels really smooth and nice, but I can still feel it’s a little WebAPP touch, just a little, maybe I’m being too sensitive. But it’s good enough that the experience is close to the Native App, similar to the React Native experience, because I also felt like AN H5 when I played React Native.
(The one with wechat icon in the middle is a small program desktop shortcut)
We all know that wechat applets can be added to the desktop as a shortcut to launch, but I find another interesting point is that we can add a commonly used or favorite wechat applets to the top of the chat box and place them at the top. This humanization is as quick as it gets.
(The ape-man circle at the top is a mini-program.)
Small program development
I was free at home yesterday and made a micro channel small program to practice. Before I developed it, I did not read the interface document of the small program. Even when the small program development tool was released and cracked at the first time and the development document was published, I did not read it, but only read the news. Only in the last few days have I been reading its official documentation seriously.
JS, easy to develop
I want to say, I really only these two days in seriously looked at the document, but less than a day I wrote a simple demo, just I will point JS, but I want to say: if you are familiar with the JS front-end knowledge, the development of small procedures easy to not. I did a small demo spent nearly a day, because I forgot JS almost, and is the first time familiar with the document under the circumstances, master two or three hours to develop a simple small procedures easy and happy.
React Native makes it easier
If you know React Native, it’s much easier to develop applets, which is what applets are based on. The framework and the idea are basically the same. If you’ve been following my RN tutorial, and I’m almost done with the components that I’ve updated, it’s enough to make small programs that you can use.
After looking at the documentation of the applet and developing it, the architecture of the applet is similar to that of Databinding in Android and EL expression in Java Web. It is initially divided into three parts: THE JS file handles the business logic, the WXML file writes the layout, and the WXSS file defines the style. If you understand the architecture, it is very easy to develop.
Attached is a GIF of a small demo I wrote as follows:
Talk about its future
Before the small program has not been officially released, we come to a horse gun, for its future I am more optimistic, I am optimistic about it for the following reasons:
-
It is the product of the best product manager in China right now.
-
It is backed by Tencent, which controls China’s biggest social users.
-
Because it’s restrained, it’s user-centric.
-
It may mean more to brick-and-mortar stores than to users. What are the biggest advantages of physical stores over online shopping? It is the experience, the small program can further optimize the physical store experience.
Future things, may not even know the future, I hope not to face. In the end, the future of small programs, that only when it really out we can see, is a mule is a horse had to pull out walking ah! I actually found that Zhang Xiaolong especially like a state is what you see is what you get, run out of go, small program can do this.
At the end of the day, the reason why applets may fail is because there are policies at the top, countermeasures at the bottom or what is imagined above is different from what is implemented below. The white point is: customer development of micro channel small program is estimated to put a simple, make it a complex, this is Zhang Xiaolong do not want to see.
Announce the winners of the year-end review: the most liked comments are available for all to see. That is, the one in the picture below, presenting you with a box of Qixia big apples from The City of Apple (add my personal wechat: Loonggg, accept the award), as follows:
So in this case, can you update RN tomorrow?