Chapter 33 Code Specifications

When Yang Qing heard Zhang Kai say that there was a problem with the program he wrote, he immediately asked, "What's the problem?"

Zhang Kaidao: "The code is not a problem in terms of function, but it is very non-standardized, such as the naming of some variables, the format of comments, the documentation of the project, etc., these are very messy, I know that this code was written by the manager before, so these are understandable, but now since the manager has handed over this project to me, then I will be responsible for the code, and the minimum requirement is that the format of the code must be standardized." ”

"Since we are a company, we must have to collaborate with many people in the future, so the code writing specification must be unified, and all people must follow a unified standard to write code, which not only allows programmers to cooperate better, but more importantly, it is convenient for future code maintenance!"

Yang Qing couldn't help nodding his head when he heard this: "That's right, you're right, this code specification is to be unified!"

Zhang Kai heard Yang Qing's affirmation, handed a stack of documents in his hand to Yang Qing and said: "This is the code specification I used when I used to work in the big thief group, manager, you refer to it, and then formulate a specification for our company!"

Yang Qing took the document handed over by Zhang Kai, glanced at it and said: "You don't need to formulate it, just use this, since the big thief group is using it, then it must be very perfect, and I will follow this specification in the future!"

Zhang Kai said with a smile on his face: "Okay, then I'll sort out the code of the Chess Soul Championship according to the specifications!"

"Cheng, there is no problem!" Yang Qing affirmed.

"Okay, then I'll go back and change the code!" Zhang Kai said.

"Okay!" Yang Qing nodded.

After opening up, Yang Qing took the code specification and looked at it, this programming specification opened Yang Qing's eyes, and he really deserved to be a person from a large company, and there were so many requirements for code, and there were as many as nine pages of dense writing. Yang Qing really didn't think about this code specification, he had always written the code by himself before, so naturally how comfortable it was, and now that he has opened a company, there will be other programmers to join in the writing of the code, and at this time there must be a unified code specification.

Just like Zhang Kai said, if a software project has very little code, it doesn't matter how to write it, but if it is a multi-person collaboration, it must be written according to a unified specification, otherwise it will be very chaotic, if a code is only written by the programmer can understand, then once the programmer leaves, it will be a disaster for the company, it is necessary to have a unified specification to ensure that no matter who writes the code, others can read it.

Put down the popcorn engine that was being written, Yang Qing began to read this coding specification seriously, although Yang Qing was a little unhappy with Zhang Kai saying that there was a problem with his code, but he was still able to accept good things, read this document dozens of times, Yang Qing silently recalled each provision in his heart, and when he couldn't think of it, he read it again, until he could accurately retell it, Yang Qing put down the document.

At this time, Yang Qing was looking at the code he wrote, and he felt a little obstructive, just like Zhang Kai said, the code he wrote was too non-standardized, since it was not standardized, then change it, the popcorn engine must be taken out for employees to use in the future, and a perfect code is a must.

This modification time passed quickly, until Chen Qian pushed the door in: "Boss Yang, it's past 10 o'clock, it's time to get off work!"

Yang Qing glanced up at Chen Qian and said, "Well, it'll be fine soon, you're waiting for me!"

Hearing this, Chen Qian sat down on the sofa and said, "Did I say that you programmers like to work overtime?

"Ah, hasn't Zhang Kai left yet?" Yang Qing asked.

"No!" replied Chen Qian.

"Then call him to dinner!" Yang Qingdao.

"Well, you should treat him to dinner, hey, how can someone like him come to our company? It can't be a spy?" Chen Qian whispered.

Yang Qing smiled when he heard this: "What a spy! What is there to worry about in our small company, I have checked his information in this open open, and he left because the shares promised to him by the big thief group were not cashed, as for coming to our company, it is because he likes the game developed by your husband and me very much!"

"Phew, why don't you say he likes you?" Chen Qian scolded with a smile.

Yang Qing stood up when he heard this, and said while packing up his notebook: "If he really likes me, are you willing?"

"Hmph, he dares to rob my husband with me, see if my mother doesn't tear him!" Chen Qian gestured up and down with both hands, and said fiercely with a fierce face.

"Haha! Let's go!" Yang Qing put his arm around Chen Qian's waist and walked out.

When he came to the outside of the office, Yang Qing saw that Zhang Kai was still typing code in front of his desk and shouted, "Brother Kai, let's have dinner together!"

Zhang Kai looked at Yang Qing and said, "No, I'm also about to leave!"

Yang Qing said: "That's right, let's rub your car!

Zhang Kai could only reply: "Okay, I'll save the project, you wait a minute!"

"Cheng, we're waiting for you outside!" Yang Qing said and came to the outside of the company with Chen Qian.

Although it is now more than 10 o'clock in the evening, under the illumination of the street lights in the factory, you can still clearly see the open Range Rover, Chen Qian took Yang Qing's arm and said: "You hurry up and buy a car, how embarrassing it is to ride a bicycle to work every day!"

Yang Qing heard the words and said: "It's good to ride a bike!, where is the shame!"

Chen Qian said: "Why don't you be ashamed, which boss did you see riding a bicycle to work!"

"Am I not?" Yang Qing said.

Chen Qian squinted at Yang Qing and said, "Do you want to buy it?"

Yang Qing saw Chen Qian's eyes and immediately said, "Buy, buy, buy tomorrow, buy this Range Rover, what do you think?"

The corners of Chen Qian's mouth curled up and said: "How can my husband drive such an ugly car, I will accompany you to buy it tomorrow, and I will definitely pick a good car for you!"

"Good!"

While the two were talking, Zhang Kai walked out: "I'm sorry, I've kept you waiting!"

Yang Qing smiled and said, "It's only been a few minutes, I'll lock the door and you get in the car first, it's quite cold outside!"

Waiting for Yang Qing to lock the company's door, he then got into the open car.

As soon as I got in the car, I heard Chen Qian say: "I discussed with Brother Kai just now, let's go eat hot pot!"

Yang Qing heard the words and said, "Yes, Brother Kai also likes to eat hot pot!"

Zhang Kai, who was sitting in the driver's seat, said while accelerating: "Old Kyoto hot pot, just this bite!"

Yang Qing laughed when he heard this: "Great, we are really fellow believers!"