<aside> ❗ C++ Class nomenclature: prefix every class with ‘OPAG_’ and the rest has to respect Pascal Case notation

✅ - OPAG_BaseCharacter, OPAG_GunModule ❌ - OPAGBaseCharacter, OPAG_Base_Character

</aside>

General


The source code must be easily understandable, so usually the clarity wins over efficiency and performance.

// Bad:
a = b * h;

// Good:
rectangleArea = base * height;
// Bad:
void TMPfunc(int x, int y)
{
	// Do stuff...
}
// Bad:
areaRettangolo = ...

// Good:
rectangleArea = ...

Naming


Every name should be written accordingly to the corresponding context, based on the following concepts.

The Standard Naming Convention is PascalCase: all first letters in uppercase.

// Bad:
rectangleArea = ...

// Good:
RectangleArea = ...