After 28 days, I finally clarified the outsourcing code

Tired. I worked hard to summarize the lessons of blood and tears, hoping to avoid detours in the future.

Let’s take a self-portrait and introduce yourself. I come from a small city in the 18th tier and came to the imperial capital. It has been more than ten years. I caught up with the entrepreneurial boom of 996. I am involved in small and medium-sized Internet companies. I have changed N projects. I have read countless codes. I am busy writing bugs and fixing bugs every day. . Unconsciously sighed, time flies, the sun and the moon are like a shuttle, the years have passed, the face is big and round, the legs are long, the volume of hair is becoming scarce, and the hairline moves up at the speed that the naked eye can see. I took it for an interview, and I couldn't make a blind date.

Without further ado, I just changed my job recently, which is in line with the development path and my salary has increased slightly. Tidy up your clothes, keep your spirits up, and strive to make a difference and pass the trial period smoothly. It's hard to know that the hot potato that took over is miserable. Is this not here to play with me? If I hadn't racked my brains and grabbed a lot of hair, it would be hard to say whether he could crawl out of the pit.

Senior resigns, I'll make up for it. A project cooperating with outsourcing has just been accepted by the predecessor, but the outsourcing part has not been clarified yet. He fired the boss and decisively rushed to his wife and future children in the third-tier cities. He typically flees from Beijing, Shanghai and Guangzhou. Ask where is the way home. In the past few years, there were calls for fleeing Beijing, Shanghai and Guangzhou, and the activists were still a minority. Most of them are young literary and artistic young people who talk about love between two people, go to a place with high mountains, high clouds, fresh waters, clear land, and a place with a lot of people and many diners. I am single, and I am only jealous.

Why outsource? I can't handle it myself. Therefore, taking over outsourcing is definitely a challenging thing. Within the company, almost no one can help you. Coupled with non-standard management, rushing to progress and sacrificing quality, it is no wonder that there will be some inexplicable problems-sometimes and sometimes, erratic. At the customer site, I just waited to see the system crash, but the system was stable. When I came back, I just went to the toilet, and the water was not ready to drink. The customer called and said, "It collapsed." There are screenshots on WeChat. Rolling ball, the heart of cursing is all there. Problems that can be reproduced are only a matter of time. The worst is piling. The readability of the code is extremely poor, I don't know that it was written by several programmers, and what is more abnormal is that there are very few comments. Some big cows, including of course some not so good people, always have a little bit of self-righteousness, thinking that what they see is the whole world, I understand, you should understand. Ask him to write a document, rationalize design ideas, and add comments to the code. It is more uncomfortable than killing him: "My code is so clear and can't be understood? It is too much trouble to write the document, the code is here."

These are all problems. I still have to solve this problem, or I will have a probationary period. I am ashamed of my fame and praise all the way.

It's a hard bone, which makes me restless, not eating well, and sleepless at night. On Sunday, Lao Tie made an appointment to skewer skewers and have a few glasses of beer. I was so bitter to him. I didn't expect to be teased by that kid. Where is there no hole in life? However, he raised a mouth. His company is trying out a domestic tool to check buffer overflows, memory leaks, and pointer confusion. I immediately wake up, this may be my turning point! The biggest difference between humans and animals is that humans can make and use tools. Why don't I use this tool?

For this wave of operations, logs that need to be deleted will not be shown for the time being.

I got the report. Facing the report, I started with the serious buffer overflow problem and awakened the dreamer with one word. I turned on the 007 mode. I went to sleep when I was sleepy, and took out when I was hungry. It's still socialist. I can eat and drink at night, so I don't need to be hungry.

Looking at other people's code is like a tengu eating the sun, and there is no way to talk. With this divine assist, I kept changing all night, cracking and changing, and gradually understood it, just like a long drought in the rain, I felt its warmth.

Hurry up and throw the latest package to the test and deliver it to the customer. The customer's phone number is missing, and the phone doesn't ring for a few days, leaving me empty. So far, 28 days have passed since I joined the company.

I am no longer a firefighter, so I have to change my mind and adapt to the new normal, with the corners of my mouth raised and cheering. In the evening, I had an appointment with Lao Tie, I paid the bill and started drinking at 7 o'clock.

The boss is loyal and knows the hero with insight. It was converted one month in advance and shared with the development team, "How to clarify outsourcing code in 28 days", the summary is as follows:

1. From the beginning of the project, the design document has a clear structure and accurate description. For software outsourcing, code quality must be managed well, modular in design, and code readable and easy to maintain. At the beginning of the project, the quality of personnel must be checked. Only an excellent code engineer can give you the project quality that meets the expectations, and can give you the code that can be maintained in the future.

2. During the code period, first give a code style or XX coding specification to the coders, and then use lint tools to check the code style and coding specification issues.

3. Once it can be compiled, use the SAST tool to find some deep-seated logic problems, such as buffer overflow, null pointers, and serious problems in Java such as SQL injection and xss injection. Inform Party B to pay attention and let the other party see your acceptance ability with admiration, don't fool around. If it doesn’t work, change people. Outsourcing projects generally have a short construction period and are fast-paced offensive projects. The frontline should not be long, and it is important to fight well.

4. Form a bayonet and add it to the process. After the code is basically formed, first use tools to improve the quality of the first version and set it as a benchmark, and then use this as a benchmark to integrate the code quality into CI/CD tools, such as Jenkins/github actions. Modifying bugs cannot introduce new serious bugs; adding functions cannot introduce new serious bugs. Improve the quality from the source of the code and raise the threshold.

The internal strength of code acceptance cannot be cultivated in a short time. Tools + processes are just like your equipment. Once equipped, your combat effectiveness can be upgraded to a higher level.

I wish you a suit of armor and martial arts~

I wish you a box of tools to repair the code thousands of lines~

 

Don't be wordy, Gao Guang doesn't work overtime at all times, and will meet a girl who is always 18. Don't think too much, just help her with a wireless router.

Guess you like

Origin blog.csdn.net/tracy_cui/article/details/106039340