The coding style

I think "Coding Style" should contained the follow parties.

  1. Format Style

The format of codes, just like rules for:

  • Indenting
  • Spacing
  • Alignments
  • Newlines
  • Positioning
  • Line Splitting
  • Blank lines
  • etc
  1. Naming Convention
All those names just as function name, class name, variant name, if they are matched to camel case or pascal case, etc.
  1. Coding Rules

Some rules to force programmer not to do or must to do during coding.

For example :

Do not allow use assign operator "=" during "if" condition !

# Wrong
if(a = 12)
{
...
}

# Right
if(a == 12)
{
...
}
  1. Version Control System Rules
Some rules about how to write a commit comment.

Comments !