|Industrial XP Coding Standard|
Coding StandardFollow a standard across the team, so code can be read easily and consistently
When programmers write code in different dialects, they make it easy to affix blame when a certain section of the system fails. They also make it hard for a random programmer on the team to be able to dive into the code and fix what needs fixing. Extreme Programming shifts the focus from affixing blame to accepting responsibility. The entire team is responsible for the system, and it is everyone's job to ensure that problems are fixed quickly and efficiently.
When all team members write code in the same dialect, no part of the system would look alien, thus enabling programmers to practice collective ownership. They would then be comfortable to fix problems in code written by other programmers on the team.
Coding Standard is best-enforced and complemented by pairing. It is not just important to have a coding standard, its also important to have a good one. A good coding standard will:
For Coding Standards to be treated seriously, they must not be long. The photograph above shows a poster that contains the entire coding standard formulated by a team. Such a poster then becomes an information radiator that should be easily accessible in the open workspace.
Smart IDEs these days allow you to specify preferences that support your coding standard and export it. You can check in these preferences into your project repository, to make it available to all developers on the project.
Further ReadingCoding Conventions, on c2.com