-
-
Notifications
You must be signed in to change notification settings - Fork 9
Coding conventions
Konstantin Dyachenko edited this page Sep 25, 2016
·
6 revisions
- All names — natural, for example instead of
idx_sourceusesourceIndex. camelCase to be short. - Pointer type (C language and unsafe C#) defined as
Link* source;(«asteric» should be before space). - After
ifput the space:if (flag) {…} - Name of fields/properties and names methods all starting with a capital letter (BySourceIndex, GetLink). This style is also known as PascalCase.
- Name of local variables all starting with a lower case letter (
link,i,tempFilename). This style is also known as camelCase. - Use 4 spaces instead of tabs across solution. Spaces allowed to do aligned formatting of code. Do not use tabs.