How to code specification

xiaoxiao2021-03-05  21

The coding specification is a programming agreement, ensuring the consistency of the code style, making the code have better readability ...

I recently worked in the Japanese company, the project ended, and Sourcecheck was conducted, and I did the following work:

1, if, for, while ..., add spaces, such as: if (1);

2, the code style is in front of (originally written by Indians, there is no style, and later, the Japanese changed, set a devil);

3. Anyone is inconsistent with the original style, deletes it, 555 ..., including my const key, static_cast ......

..................

contradiction! There is no regulating code, definitely a mess; standardizing Taiyuan board, limit the flexibility and trouble of colleagues.

When the Japanese check the code, I will see the blank line when you have a space, and you will be deeted as a defect! ! Really BT.

Ah, I have to die, strike! Anti-Japanese!

However, it seems that the domestic company is not there, my company (domestic company) manager is like this: "Colleagues are not very familiar with STL, and your code is not ..." Depressed ? The C standard thing is even more unfamiliar with me, but also "our project is C development, you have a big space development ................"

Freedom! desire…………

转载请注明原文地址:https://www.9cbs.com/read-38390.html

New Post(0)