公司有自己的编码风格,我个人有我自己喜欢的编码风格,请问大家若是处于这样的情况如何在维持个人风格的情况下不影响工作?
我能想到的只有Formatter。
学习是最好的投资!
Each style has its own reasons, it’s hard to say whose style is better. I usually write the company's code in the company's style; when I write my own code in private, I use my own style.
As individuals, obey the team and don’t be too personal
Obey the team first
Then have the same style in one project
Recommended Google style http://zh-google-styleguide.readthedocs.org/en/latest/google-cpp-styleguide/
Each style has its own reasons, it’s hard to say whose style is better. I usually write the company's code in the company's style; when I write my own code in private, I use my own style.
As individuals, obey the team and don’t be too personal
Obey the team first
Then have the same style in one project
Recommended Google style http://zh-google-styleguide.readthedocs.org/en/latest/google-cpp-styleguide/