From ea807d82fdb087ab2b9f8c469ac3d7b6d5b91738 Mon Sep 17 00:00:00 2001 From: orignal Date: Fri, 20 Nov 2015 09:29:14 -0500 Subject: [PATCH] Created Coding guideline (markdown) --- Coding-guideline.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 Coding-guideline.md diff --git a/Coding-guideline.md b/Coding-guideline.md new file mode 100644 index 0000000..5b97dd2 --- /dev/null +++ b/Coding-guideline.md @@ -0,0 +1,6 @@ +1. Files from libi2pd must not depend on files from libi2pdclient and i2pd. Files from libi2pdclient can depend on files from libi2pd but not on i2pd. You can find it in the fileslist.mk +2. You can use C++11, but make sure code is buildable by gcc 4.6 +3. Don't reinvent a wheel. Try to find appropriate solution in std or boost. If a feature is presented in both, use std. +4. Don't bring any additional dependency without discussion. However boost, openssl and zlib can be used in any amount. +5. No requirements for formatting or coding style. You can you whatever you like. +6. When you work with binary data, mind endianess. Use functions from I2PEndian.h \ No newline at end of file