From f472ddbc33598badb5343ede1ed8404ae9fc10d1 Mon Sep 17 00:00:00 2001 From: Joanna Rutkowska Date: Thu, 18 Apr 2013 13:50:51 +0000 Subject: [PATCH] CodingStyle changed Language-specific guidelines --- CodingStyle.md | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/CodingStyle.md b/CodingStyle.md index 0de8cca4..5f02bee6 100644 --- a/CodingStyle.md +++ b/CodingStyle.md @@ -131,14 +131,18 @@ Security coding guidelines Python-specific guidelines -------------------------- -TODO +- Please follow the guidlines [​here](http://www.python.org/dev/peps/pep-0008/), unless they were in conflict with what is written on this page. -C-specific guidelines ---------------------- +C and C++ specific guidelines +----------------------------- -TODO +- Do not place code in `*.h` files. +- Use `const` whenever possible, e.g. in function arguments passed via pointers. +- Do not mix procedural and objective code together -- if you write in C++, use classes and objects. +- Think about classes hierarchy, before start implementing specific methods. -C++-specific guideline ----------------------- +Bash-specific guidelines +------------------------ + +- Avoid writing scripts in bash whenever possible. Use python instead. Bash-scripts are Unix-specific and will not work under Windows VMs, or in Windows admin domain, or Windows gui domain. -TODO