If you found some problem with working of this project you can send bug report to issues of this repository. First, make sure that the error was not found and published earlier. Please try to clearly describe the error in the work of the project and, if possible, describe the complete algorithm for receiving the error that you saw.
If you want to help fix bugs in the project or add some functionality, first write a new message to issues of this repository with a description of what you are going to do.
When writing or correcting project code, follow the style defined below.
In C-like programming languages such as JavaScript, C ++ and others, try to style the code in a uniform way:
Example:
class ClassName {/*...*/};
struct StructName {/*...*/};
union UnionName {/*...*/};
enum EnumName {/*...*/};
Example:
int some_variable;
class ClassName {
int some_field;
};
void doSomething(int some_argumment) {/*...*/}
Example:
void doSomething() {/*...*/}
class ClassName {
int getSomething();
int setSomething(int something);
};
struct SomeFunctor {
void operator() {/*...*/}
} doSome;
Example:
const int SOME_NUMBER = 42;
constexpr int SOME_OTHER_NUMBER = 24;
#define SOME_MACRO
Try to write names that reflect the essence of the object. Try to style the compound words to describe the type of statement.
Do not put statement parentheses immediately after statements or object definitions. Separate them with a space. Place an open statement parenthesis on the same line as the statement or object definition.
if(/*condition*/) {
/*expressions*/
}
while(/*condition*/) {
/*expressions*/
}
for(/*counter definition*/;/*condition*/;/*counter change*/) {
/*expressions*/
}
void doSomething() {
/*expressions*/
}
In cases where it is possible not to write operator brackets, place the expression after the operator.
if(/*condition*/) /*expression*/
while(/*condition*/) /*expression*/
for(/*counter definition*/;/*condition*/;/*counter change*/) /*expression*/
If the expression is too long to fit on the same line with the statement, it is allowed to fit the expression on a new line.
if(/*condition*/)
/*is too long expression to fit on the same line with the statement*/
while(/*condition*/)
/*is too long expression to fit on the same line with the statement*/
for(/*definitions*/;/*condition*/;/*counter change*/)
/*is too long expression to fit on the same line with the statement*/
In functions and methods with short expressions in statement brackets, it is allowed to place expressions and a closing parenthesis on the same line on which the function or method was declared.
void doSomething() { /*expression*/ }