From d3395b0e42d05efaab38490106387db57e54ebb2 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Thu, 20 Jun 2013 13:40:33 -0700 Subject: [PATCH] Tweak cheat sheet --- StyleCheatSheet.txt => CheatSheet.md | 9 +++++++++ 1 file changed, 9 insertions(+) rename StyleCheatSheet.txt => CheatSheet.md (50%) diff --git a/StyleCheatSheet.txt b/CheatSheet.md similarity index 50% rename from StyleCheatSheet.txt rename to CheatSheet.md index 451b42f97a..e157422eca 100644 --- a/StyleCheatSheet.txt +++ b/CheatSheet.md @@ -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