Best Practices

Certain coding conventions are used for a reason. So it's best to use them.

1. Variables and Functions

camelCase or snake_case

function paranthesis don't have whitespace next to the identifier: function()

Variables must be created as close to their first use.

Also camelCase or snake_case for constants. They don't need a different naming scheme. Programmers coming from C are used to UPPER_SNAKE

2. Comments

3. Header Files

#ifndef SOME_UNIQUE_NAME_HERE
#define SOME_UNIQUE_NAME_HERE
// your declarations (and certain types of definitions) here
#endif