Boredom is also a kind of productivity, recently more than boring, also upset, this kind of situation I will only do three things will be more happy, and someone to go out to play, play games, or write code, the first two because of the reality can’t achieve, I can only use the third method, and this time writing code can always write something you want to do.
Small program, a long time ago to write a very simple, at that time I felt that the micro channel small program native grammar is really too complex limit too much is not good to use, especially like me, make things really ugly to die. As expected, I found the template of what I want to do. I should even say THAT I found a fairly good project, Gitter, which is the most beautiful GitHub wechat small program. I agree with it, but after using it, I found some problems in fact. Unable to meet my needs:
-
In his project, the README display went down and could not display the README, which had a big impact. When I looked at the code later, I guessed that the reason was that he had put the markdown parsing on the server, and the server was down or something.
-
When I open the mini program, GitHub Trending is displayed, which is a good function, but the efficiency of finding interesting projects in Trending is actually a little low. Most of the time, I go in to see what are the most popular phenomenon-level projects, such as 996.ICU and Wuhan2020. This need is not well met.
-
When using this small program to raise an issue, a small tail will be added automatically, and the content is the TWO-DIMENSIONAL code of Gitter small program. This function allows users to help promote the small program, which is no problem and a good method, but if repeated comments appear repeatedly under an issue, it will feel a little repetitive.
In general, this small program is a very good small program, as a learner of me, I want to look at it, for the part that can not meet the requirements, then I rewrite it, the License is Apache License 2.0, rewrite no problem.
I don’t want to write the specific implementation code here. If you are interested, please click to see the rewritten project. Here are two final screenshots:
Open the small program, your first sight may be the most recent should know a small program (selection is based on active, healthy, hot, with a certain degree of progress, manual audit), this small program can view their Follow people’s activities, if interested can also be very convenient star or fork, You can also search for all GitHub projects or users (Gitter originally had this support plan, but I don’t know why it was removed. I have used this function many times in the past week, which is very practical), share it with friends, and directly jump to a project can also be inserted in the public account. There are two examples before and after this article, which you are very welcome to use. For the small tail, my approach is optional rather than mandatory. I appreciate promoting it for me, but only as a tool. For the README before display three thousand characters, basic should be able to understand what is the purpose of this project, if you want to see the full text can check in the Code, format is ok, but doing so can be put in the local, and have very good efficiency, network download after a successful almost don’t have to wait for, I think it is a better user experience. Other interface I have also made a lot of corresponding optimization, some small details, I hope you can use it feel good.
At the beginning of this project, I have copied a lot of codes from Gitter because I have never heard of the writing methods of small programs, especially Taro (a framework used in this project), so this project is a parody of Gitter project. Thank you! Gitter project can be viewed by clicking: Gitter
Postscript:
Every time I am idle and bored, I will learn things around GitHub. This time I feel that I have written about GitHub most successfully, and the reason is also because it takes the longest time. Boredom is productivity!
Come on, Wuhan! Come on China!
First posted on public account: RAIS