-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
66474e6
commit d3395b0
Showing
1 changed file
with
9 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,16 @@ | ||
# Form | ||
|
||
- One class per header file. | ||
- Place each data member on its own line. | ||
- Place each ctor-initializer on its own line. | ||
- Create typedefs for primitive types to describe them. | ||
- Return descriptive local variables instead of constants. | ||
- Use long descriptive names instead of abbreviations. | ||
- Use "explicit" for single-argument ctors | ||
- Avoid globals especially objects with static storage duration | ||
|
||
# Function | ||
|
||
- Minimize external dependencies | ||
* Pass options in the ctor instead of using theConfig | ||
* Use as few other classes as possible |