Skip to content

Coding conventions

Konstantin Dyachenko edited this page Sep 25, 2016 · 6 revisions

(русская версия)

  1. All names — natural, for example instead of idx_source use sourceIndex. camelCase to be short.
  2. Pointer type (C language and unsafe C#) defined as Link* source; («asteric» should be before space).
  3. After if put the space: if (flag) {…}
  4. Name of fields/properties and names methods all starting with a capital letter (BySourceIndex, GetLink). This style is also known as PascalCase.
  5. Name of local variables all starting with a lower case letter (link, i, tempFilename). This style is also known as camelCase.
  6. Use 4 spaces instead of tabs across solution. Spaces allowed to do aligned formatting of code. Do not use tabs.
Clone this wiki locally