mirror of
https://github.com/QubesOS/qubes-doc.git
synced 2025-08-09 23:22:49 -04:00
CodingStyle changed
Language-specific guidelines
This commit is contained in:
parent
76d37a1c92
commit
f472ddbc33
1 changed files with 11 additions and 7 deletions
|
@ -131,14 +131,18 @@ Security coding guidelines
|
||||||
Python-specific 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
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue