preface

Time flies. Today is July 10, 2021. This is a late mid-year summary, it has been lying in the draft box for a long time, originally in June 18 or so to write a summary of the first half of the year, is an account of their own, straighten themselves out, and then continue to refuze in the second half of the year. But midway because of a variety of things to delay, has been dragged to now, finally can come to the “assignment”.

In any case, it is easy to do what is scheduled to be done. Take a look back at some of the most promising flags of the past year, as shown in this chart:

(T_T) uh…… Overall, the situation of completion… Em… Not bad. 59.9, not a pass. Of course, this is only the four main task, during constantly set the side task to grind to upgrade, the following is the same as the usual three aspects to talk about it.

In the first half of the year

blog

As usual, I’ll start with a personal blog stack. Old friends who know me well may know that I have a little website that looks like this:

It has always been a little dream of mine to build my own little world. I’m a “wild” programmer, technically a bit of a troublemaker, and in this small world, I’m free to play with my wacky ideas.

Of course, the most important reason for building an online environment is the practice of some new technologies. Any new technology to stand, must pass the test of the production environment, and like an ordinary office worker, working in a company, in fact, it is difficult to have the opportunity to do some production practice test, investigation of these new technologies, so it is necessary to build their own online environment.

In the first half of this year, with the official release of Vue3, as a senior Vue developer, I could not do without action, so I began to consider the reconstruction of the whole small stack. The whole project was originally divided into three parts: the display front, the management back end and the server, which were all separate projects.

  • Front desk: SelectnuxtJSRefactoring to enhance the home page access speed andSEOAbility. The foreground was the first project I refactored because I had basically learned itVue3CompositionAPIAnd some other new features, so I want to use it in practice; butnuxtJSVue3I’m still working on it, ingithubI walked around, and I found something that supportsCompositionAPIThe haveSSRThe inventory of ability is in, but all things considered, still choosenuxtJSSo it’s stillVue2Version. That’s a shame, futurenuxtJSLaunch supportVue3Version, estimates still have to toss over, hope to have the corresponding upgrade strategy.
  • Background: SelectionVue3 + Vite2 + TSRefactoring, until now the background has not been refactoring, a little uncomfortable, regret, expected to be two months, now only40%I haven’t been able to catch up. Well, there are two main reasons for this. On the one hand, there are a lot of holes that need to be filled in the new technology. Some of the more uncomfortable holes have been summarized in this articleSummary of techniques/issues encountered in Vue3+TS+Vite2+ElementPlus+Eslint project practicesOn the other hand, because the whole project is basically re-coded, the workload is a little heavy, such as the core of the article writing function of the editor, originally developed relatively simple, the core is usedtextareaTag, but it can not write long articles, too long articles page will appear to lag, now the whole refactoring, refer to the mining editor to do, ha ha ha. (-^ ○ ^-) HOPE later have free time to catch up on the progress, refuel SAO years.
  • Server: The server is less changed overall, orkoa2Technology. The first is the migration of the server platform, originally used to be Tencent cloud platform, now replaced by Ali cloud platform. But on the way, alas!! The domain name did not get, originally I had registered a domain name and prepared the case, but that domain name record pointing to the serverIPIs Tencent cloud that server, according to the document, should be can change ali cloud that server is? (hate their own service side knowledge is not enough ah, cloud in the fog) but in the Tencent cloud assistant management small program did not find the migration domain name related information; After communication with the customer service of Ali cloud, it is said that to cancel the record can buy domain name record in Ali cloud again, I do it, and then buy domain name record in Ali cloud again. “The record does not pass” said infdaThe main body of the record is not cancelled, need to mail the data in the past cancellation,…… I… T… M, I give up and just useIPForget it, ah, did not have a domain name, small program also down, also play not up, blame oneself to learn art not fine. Then, there is a big change in the server, is the background upload pictures are changed to Ali CloudOSSStorage, which used to be placed directly under the serverpublicDirectory, resulting in storage space slowly become large, access speed is also declining, now good, can play happily.

Ok, the whole refactoring process looks like this, although the whole site UI changes little, but the technology stack is flipped over, very interesting, and finally attached a new small stack address: click on me

The source code

The second part will talk about the last six months in my source code on the situation.

Reading the source code is a program ape must pass the way, promotion, often between two people open the distance is here, so I ask myself to have free time must go after its essence, not afraid to understand, afraid did not see.

Reading source code is a boring process that can make people want to give up a lot of times. Some people here may ask is it really important to read the source code? Like VueJS I even don’t understand its source code, I can write the same business, the same can complete the task arranged by the company, why bother with their own? So whether to learn the source code?

Em…… Here I don’t bullshit, LET me say some ideas when I learn them, I often urge myself to look at the source code or when I see something I don’t understand, will tell myself like this: “God, here is really advanced, learned this, must send a friend circle to pretend to force, or write an article blowing water”, so often prompted their own continue to read the motivation, anyway, it varies from person to person, see how you look at it.

All right, back to business. This half a year, read the source code is not much, mainly Vue2 source code, there are webPack and some native methods of JS

Lately, more time has been spent on the source code side of webPack, from the original will only be configured according to the document, to the current…… Or xiao Bai ( ̄ ▽ ̄), what are you thinking about? But now that we’ve evolved a little bit, we have a more fundamental understanding of WebPack, and we know what the whole packaging process does, Such as the existence of the Compiler object, the __webpack_require__ function’s implementation of the require keyword, how to recursively read files to build dependency diagrams, the nature of loader, How plugins use Tapable to make event flows work.

The Denver nuggets

The last part is about my favorite tech community platform, Nuggets.

The holy land of learning and fish, ha ha ha. Nuggets to also have more than a year of time, really from the above to learn a lot of things, a lot of articles really can give a person deep perception, the quality of the article is relatively high, two words, reliable, technical iteration of the information is also very timely.

I’ve been working on it on and off since I wrote my first article in Nuggets last November, of course, more of a summary article, and hydrology, of course, lol.

Rectified, and wrote the article 29, just up to level 3, the author also, more is not frequently, the paper quality, depth is lacking, the writing is not good, actually I have a lot of time in doubt and questioning yourself, so rubbish, actually writing up also is a fool, invite humiliation, ah, in the autistic…

However, even so, I still want to stick to it, although my technical depth is not enough, it still needs a long time to accumulate precipitation, and writing articles can help me to better summarize and summarize some knowledge points, is a good way, do not want to give up completely.

In fact, people insist on doing one thing, it is really difficult, especially easy to give up the situation, this is normal. I have heard a scientific survey before, saying that people can form a habit as long as they stick to doing something for 27 days. But sticking to those 27 days isn’t easy, and one of the most effective ways to do that is to constantly seek out other forms of supporting expression to increase your interest and motivation. The reason WHY I can continue to insist on writing, I think also benefit from it, such as I build a personal small stack need some articles to show, or I applied for a personal public number, occasionally send text play, also very interesting, slowly adhere to writing is not so uncomfortable things.

Uh, it’s like… That’s far from it. Come back. Generally speaking, the mixed gold nuggets learned something, but also can touch the fish, thanks to the gold nuggets and the top of each big guy; Writing articles also insisted, the future also hope to continue to adhere to.

In the second half of the year

The first half of the year is basically completed last year set the first two flags, the second half of the year to continue to work for the remaining two. Of course, there are other areas to strengthen, the so-called horizontal development, continue to work hard.

Finally, I have been a social animal for two years imperceptibly, and I feel everything is so natural and natural. From the campus to the society, he seems to be ready for everything, but also like everything is not ready, so on the society. However, these are not important, have become a fact, can only be hard to scalp to move forward, can only say the future, this is the way, goodbye.

The nuggets years | 2021 theme activities I grow half of the campaign is under way on the road…