Coding standards and best practices

This page is collects the coding standards so far agreed on in PARPG.

Python
PEP8 is the basis of the coding standard. The following are just qualifications.


 * .py for source files (it should go without saying).
 * 4 character indent, all spaces, no tabs.
 * CamelCase for all classes.
 * lowercase_with_underscores for all variables, methods, functions.
 * CAPS_WITH_UNDERSCORES for all constants.
 * Line length is 80 characters max.

C++

 * .hpp for header files, .cpp for source files.

Yacc

 * .y for c source files.
 * .ypp for c++ source files.

Lex

 * .l for source files.