CruceGame  v0.4.0
 All Classes Files Functions Variables Enumerations Enumerator Macros Pages
CruceGame Coding Standard

The CruceGame coding standard is based on linux kernel coding standard, which can be found here: https://www.kernel.org/doc/Documentation/CodingStyle. Please read this coding standard and follow it as close as possible.

Indentation

Long lines

The lines should have at most 80 characters. Statements longer should be:

Placing braces

The braces should be placed at the end of the line, except for functions, where the opening brace should be placed at the beginning of the next line. As this is a project for beginners, we expect you to be a beginner. So you should use braces, even this is not necessary. This is just a piece of advice. If you are confident about your skills, you may not use them all the time.

Spaces

Naming

Functions

Functions should be as modular as possible. Every function should do one thing, and do it well. Please document your functions and test them before making a pull request. Keep your functions as short and simple as possible.

Commenting

Here is an example of a function documentation: ``` /**

The documentation before implementation should describe the function or data type or object completely. If someone wants to use it, that is to be read, not the implementation.

Miscellaneous