mirror of
https://github.com/QubesOS/qubes-doc.git
synced 2024-10-01 01:25:40 -04:00
CodingStyle changed
General guidlines cont.
This commit is contained in:
parent
27766aadad
commit
7f8e11106d
@ -102,6 +102,8 @@ General programming style guidelines
|
|||||||
|
|
||||||
> But generally, there is little excuse to keep old, unused code fragments in the code. One should really use the functionality provided by the source code management system, such as git, instead. E.g. create a special branch for storing the old, unused code -- this way you will always be able to merge this code into upstream in the future.
|
> But generally, there is little excuse to keep old, unused code fragments in the code. One should really use the functionality provided by the source code management system, such as git, instead. E.g. create a special branch for storing the old, unused code -- this way you will always be able to merge this code into upstream in the future.
|
||||||
|
|
||||||
|
- Do not hardcode values in the code! The only three numbers that are an exception here and for which it is acceptable to hardcode them are: `0`, `1` and `-1`, and frankly the last two are still controversial...
|
||||||
|
|
||||||
Source Code management (Git) guidelines
|
Source Code management (Git) guidelines
|
||||||
---------------------------------------
|
---------------------------------------
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user