Task: Define Coding Standard
Purpose
  • To aid clarity by making the style of code as familiar as possible.
Relationships
RolesPrimary Performer: Additional Performers:
InputsMandatory:
  • None
Optional:
    Outputs
      Steps
      Write Prototypical Classes

      When deciding on a coding standard, take the time to write a few classes which use a particular style. Should the curly braces be flush with the indentation of the line above? Do we use tabs or spaces? Are abbreviations permitted? If so, do we have a short list?

      Discuss Standard

      The coding standard for a project should be as simple as possible. The goal is not to forbid error prone constructs, but rather to make the code as communicative and uniform as possible so it can be understood and worked on readily. If the team cannot reach consensus, use majority rule. Having a standard is more important than the specific details.