Coding conventions
The main message:
- KISS
- Orientate yourself on the files, already included in the respective projects
- Write simple code
- Write intuitive code
- Write coherent code
and never forget: Don't write ugly code ;-)
General rules | Naming and Code structure | |
|
|
Some C++ stuff:
- No C-style casts
- Every class must have a virtual destructor
- All headers must be protected with #define statements against multiple inclusion
- Favour a split in header and source file
- One class per file
Commit rules
- Do not commit code or oter files, protected by intellectual property rights
- Every commit must have a meaningful description (no lazy commits)
- Newly commited code must not make the project uncompilable
- For experiments and co, use branches
- Test commited code also on other platforms before comitting
- Don't add or commit unnecessary files (for git repos, have a look at .gitignore )