At my current job, we are pretty strict about code quality and coding standards. All new employers go through brainwashing when senior developers prepare them to write (hopefully) better code.
The code review process is meticulous and usually slows down the performance of reviewers. And sometimes the brainwashing period is delayed by 2 or 3 months. Sometimes the corrections are subtle (for example, structuring the IF statement so that it is short-circuited as soon as possible), and sometimes you cannot help but raise an eyebrow (for example, declare a line and set it to String.Empty and assign it a different value on the next line).
I am looking for suggestions to reduce the time and effort to get new employees assimilated by team coding standards.
What do others do in such circumstances? What processes or tools do you use? Is there a way to automate this? I reviewed FxCop, but have not really tried it, and I don’t know if this will actually help reduce time and effort, or is it even the right tool? For logistical reasons, we cannot perform pair programming if this is an offer. And I would doubt it, reducing the effort.
We tried to keep the internal “fixes” wiki, but it’s not so sad. The lack of coercion, and also because it is easier "to correct someone’s mistakes" rather than "reading and trying to prevent mistakes."
Also, as you guys tow it to new employees, is it important to know the quality of the code? And do you guys beat those who lack quality in the interview, or are you trying to change them after they are hired?
Many thanks.
EDIT: Thanks for all the answers. I'm not sure if there is a correct answer to this question, but I will mark as correct the one that I will definitely test.
coding-style code-review software-quality
Fung
source share