Isolate the working environment
It is only two months since Beijing was quarantined in early May , Many people have experienced a revolutionary life change , Even the roommate once had jet lag during isolation . But I don't think it's all about isolation , Actually, it was 2020 year , I've experienced as long as 1 Months of isolation , Now just two weeks of home not only did not disrupt the pace of life , Instead, it taught me to get higher work efficiency with lower living cost . One of the most important things is to make good use of all kinds of online tools , Don't let them disturb your rhythm , Instead, use them to adapt to your life to get higher work efficiency . The two most important tools for working from home are online meetings , One is code synchronization .
First of all, let's talk about the background , I have been working in operation and maintenance development since graduation , Amateur will also do some small websites , Small scripts do odd jobs . At present, the daily working environment in the company itself is based on remote , Often faced with the situation is big boss abroad , The little boss is in Guangdong , Then, although our colleagues are in Beijing , But it's far away from another office on the other side of the city . So in daily work , It is difficult to communicate face to face , And we should consider the problem of time difference .System Design、Code Review In such an environment, it will become very dependent on online tools . And the nature of this work , Instead, it is very suitable for isolation life during the epidemic .
How to have a efficient sync meeting on-line?
Let's start with the meeting , as everyone knows , Meeting every day is a very energy-consuming and ineffective thing . The core reason of this problem lies in many Manager I am used to taking meetings as a kind of push methods , In the course of the meeting , Many engineers waste their time and energy listening to the meaningless details of other projects . But if you don't attend the meeting, you will miss some details .
On this point , First, we need a complete online meeting Tool chain , Our company uses zoom+slack+Google doc+Google calender The plan . An engineer can see the regular meeting the next day the night before every day , Then you can also slack Reply inside whether you decide to participate . and Manger When arranging the meeting , In especial 1-on-1 meeting , You can use the Google calender Know the schedule of participants in advance , Avoid scheduling other meetings .
And in the course of the meeting , Everything is in Google Doc On synchronous , For group meetings , Basically, everyone writes several core contents in advance before the meeting , Then everyone has 2-3 Minutes to tell your own content , The details are put in the linked document (Google Doc Very good for hyperlink objects ) Last stay 10 Let's talk about it in about minutes Common Topic. So down , The meeting can not only have complete records and link materials , At the same time, it can be basically controlled in 30 A small group meeting will be held in minutes . More details , Will stay until Code review\Doc Comment Discuss in , Because these details are completely unnecessary for engineers of non relevant projects to listen from beginning to end .
But for some traditional company bosses , Such a meeting may be very uncomfortable , Because the meeting is actually reserved for Manager There is very little time to talk , Basically, there is only one point comment Time for . Here is the second point , Such a meeting mode , There must be self-motivation Company culture . Don't do meaningless push, Instead, focus on solving real problems . Only in this way can the meeting be truly effective .
How to do code immigration correctly from remote?
Because I am the infrastructure department , therefore CI/CD The problem is also a cliche . But what we want to talk about here is not enterprise level CI/CD structure , Instead, I'll talk about how to be an engineer , Ensure that the code is safely and correctly integrated into the code base .
The code management framework we currently use is still based on Github Of .Git Tools are even more necessary for a developer to get started . But to be honest , I feel that there are not many people who really use this tool in a standardized way . Just can you write a standard commit message It has already failed many people . Besides , About best code practice The documentation of classes should not only be read , It needs to be put into code pre-merge check in .
Some people may feel that such rules and regulations delay the development progress , But when you face an environment that forces you to work remotely , These standardized working methods will be your greatest help .
Joel Spolsky: It's harder to read code than to write it.
In the process of remote development , No one can stand behind you , Read their code line by line for you , And so is your job . Only when everyone's code readability reaches the baseline , Company projects will become easy to synchronize and expand . Again , No smart engineer would refuse to come from Google Professional development methods . So we are preparing to build the so-called large CI/CD Before , It's better to consider some work to impose code readability Standards .
Last , I also want to push the strategy of light client development . During isolation , When something goes wrong online and needs to be fixed , It's very normal not to have a working computer with you . At this time, I want to enter the development state at the first time , We must have a remote online development environment . For my own project , I use VS Code+ Tencent cloud branch management is realized .VS Code Of remote The development is relatively smooth under the domestic network , There is no need to install remote Client End , Tencent cloud can ensure stability Github Connect , The whole code synchronization chain is very comfortable ( Add another one locally Typora, To write a blog is basically to write wherever you go ). This springboard server solution can also easily solve the problem of multi terminal code synchronization , I am currently on Tencent cloud crontab Mission , Every time 12 The script that pulls the code every hour , It is completely free from manual code pulling on the cloud , It also saves a lot of things .
原网站版权声明
本文为[InfoQ]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/186/202207051057462641.html