“Live up to the time, the creation of non-stop, this article is participating in 2021 year-end summary essay competition”


2021 is a year of transformation for me, on all levels. But there was no anxiety, just relief that I was able to adapt to the change. Especially in the past few years since the age of 30, there has been some complacency, which should be worrying. So intentionally or not, I made a few changes and tried a few different things. There were failures, there were successes, but I didn’t care. The important thing was that I dared to change.

Stabilize large items -> Fragment small items

Since working remotely a few years ago, I have been delivering steadily on a major client project. Later, in order to reduce the risk, the team slowly adjusted the customer composition and began to reduce the proportion of major projects. I persevered until the last second, but I came out of this big project at the end of last year. Then I was faced with a lot of clients and projects that probably didn’t require full-time work. In other words, several projects need to be developed in a single day. At one point, I even worked on two new projects in one day, and needed to configure the local environment and familiarize myself with the code style and technology stack. Fortunately, I finally got used to this situation at the beginning of this year.

Docker

This year, in addition to some PHP and Node.js projects, I also encountered Java, Ruby. It can be a bit uncomfortable to switch around a lot every day, and versions of the same technology stack can vary from project to project, and versioning like NVM isn’t enough, so Docker comes to mind. Previous use of Docker has been stopped at the deployment level, even for development environments, which are already configured. Finally, I learned to configure some Docker-compose by myself, and packaged the development environment of each project, so that each project can be launched with one button. For the most complex project, I added front-end, back-end management, back-end API PHP, RebbitMQ, MySQL, Redis, ElasticSearch and Google Cloud Function services in Docker-compose. Now it only takes a few minutes to switch projects.

CMS

CMS is always popular for small projects because it can quickly implement requirements, and customers can implement simple requirements without going too deep into technology. It also comes with an administrative interface. Therefore, this year, the most contact is also a variety of CMS. WordPress, for example, has a variety of plugins for a variety of purposes. Totara, a CMS focused on online education and training, is an encapsulation of Moodle, developed in PHP. And Shopify for e-commerce.

But the most amazing thing is Strapi, a Headless API-type CMS based on Node.js. The built-in management interface allows you to create various Types of database tables with various Types of fields. You can manually input data directly, such as image type fields. You can drag and drop or click to upload images while you input data. The most important thing is that it automatically generates a RESTful API, which works with Next. Js, and I felt a bit non-technical when I was developing it because it was so easy. If you add a low code development front, simple pages can be done without code.

Next.js

A couple of projects got their hands on Next. Js, and after using it, it felt really useful and a lot of the configuration could be omitted. It is convenient to start a small project, and the development efficiency increases significantly. Of course, one of the larger projects using next.js was that there were some flaws if the code was poorly written, but the flaws didn’t cover the upside. At present, I am still learning, and I feel that SSG and ISR hybrid rendering strategy in SSR is a future development direction.

Mac -> Windows

I replaced my 4 year old Mac this year, adding the previous 2 Macs, and have unknowingly had 7 or 8 years of Mac. Actually very used, also very easy to use, but before all used the old model, really do not like the touch bar that. Most importantly, being a bit of a bitch, try WSL using the Linux command line on Windows. So I took advantage of my wife’s.edu Email discount and bought an alien R5, a little less expensive than a Mac.

WSL

Developed on Windows, WSL is the foundation of everything, short for Windows Subsystem for Linux. As the name implies, WSL uses container technology to install Linux on Windows for the command line. Began to install according to the official guidance, tinkering for a long time or error, found many ways, give up. Docker Desktop for Windows version has its own WSL. Later, I often encountered problems in the port mapping of localhost. Sometimes I could just restart it, and sometimes I could just find some commands to execute. It is very stable recently, I don’t know if it is resolved after the updated version. So far, Windows Terminal’s inability to save layouts is a bit annoying, but it works pretty well.

VS Code

I actually switched from Sublime to VS Code last year on the Mac. It still performs well on Windows and can play WSL projects directly. There are also plug-ins that are being used, Edit CSV which is a very convenient way to Edit CSV files, you can Edit text, you can open tables. TypeHole is used for automatic completion of TS type definitions. SVG can preview SVG images. Cloud Code is used for Google Cloud. There are also plugins for Markdown and JSON, which are very useful.

PowerToys

PowerToys Run is also a new tool set from Microsoft and the community. In addition to utilities like color and wake up, PowerToys Run is similar to Spotlight on the Mac. The keyboard manager can change the key mapping, changing Alt to Ctrl and Win to Alt.

Became the Up the main

At the beginning, I felt like I hadn’t updated my JavaScript knowledge for a long time, and as a former professional front-end developer, I couldn’t afford to lose my roots. So I started reading JavaScript Weekly again. Later, I felt that I could not stick to it, so I wanted to write a blog to drive myself to stick to it. However, “Weekly” is already a text content. If it is written as a blog, it will feel like translation, which is not interesting. At that time, I happened to watch a lot of things at B station, so I made a video and posted it. Although it was interrupted for a while due to various things, I started to insist on it again recently. It only got a few dozen plays at first, and hardly anyone watched it. Over the course of a few episodes, it’s been played hundreds of times, and while there’s still no interaction, it’s good to see growth.

Later, a lot of people said the voice of the machine is not good to listen to, I had to brave their own battle, began to broadcast weekly. Within a few episodes, it suddenly had thousands of views, and many people left comments expressing their support. I was really happy, the videos I made were useful and gave me a lot of motivation to keep going. By the time the recent episodes reached more than 10,000 views, it was hard to imagine. And even opened a profit, although not much money, but a sense of accomplishment.

Another AD, if you don’t want to read the whole article every week, you can follow my Up.