From b4f332df8582bb5ac3b111b662a4653b45bf0e0e Mon Sep 17 00:00:00 2001 From: orignal Date: Fri, 25 Jul 2014 06:31:03 -0700 Subject: [PATCH] Created Coding guideline (markdown) --- Coding-guideline.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 Coding-guideline.md diff --git a/Coding-guideline.md b/Coding-guideline.md new file mode 100644 index 0000000..568e9f1 --- /dev/null +++ b/Coding-guideline.md @@ -0,0 +1,8 @@ +1. Don't re-invent wheel. Look at std and boost first +2. Try to keep code in header files. Keep in mind you class my become a template later on. Use cpp files in case of cross-references +3. If there is the same functionality both in std and boost, use std +4. Use C++ 11 features, it makes code smaller and more readable +5. Before implementing optimized assembly code, make sure there is a default implementation for other platforms +6. Don't use additional dependency unless it's absolutely necessary. Std, boost and crypto++ should cover most of it +7. Don't create extra thread just for waiting for some resource, try async operations instead + \ No newline at end of file