Table of Contents
For Python it is very simple. We try to follow the style code defined in PEP 8 -- Style Guide for Python Code.
If you find python code in Robocomp that does not comply with PEP8 we would appreciate a Pull Request to fix it. Thank you.
For C++ it is not so simple. There is no standard style defined. Several projects have established their own style codes. In Robocomp we are trying to agree and define a style code and for now what we have are a series of recommendations:
4 spaces. No tabs.
Space before each new parameter in function calls and function declarations
https://google.github.io/styleguide/cppguide.html#The__define_Guard
Use snake_case
Use snake_case
Use CamelCase
Use snake_case
New line before open brace
Don’t use the using clause for namespaces in .h files https://lefticus.gitbooks.io/cpp-best-practices/content/03-Style.html#always-use-namespaces