C++ Coding Advice
From Tekkotsu Wiki
Language Features
Tekkotsu programs are written in "industrial strength" C++, employing advanced abstractions mechanisms including templates, multiple inheritance, polymorphism, name spaces, and functors. Thus, learning Tekkotsu programming is an opportunity to improve your C++ coding skills as well as your knowledge of robotics. Here are some resources that will help.
Online references:
- C++ FAQ, by Marshall Cline
Books:
- C++ FAQ Book by Cline, Lomow, and Girou
- Effective C++: 55 Specific Ways to Improve Your Programs and Designs (3rd edition), by Scott Meyers
Coding Standards
Every large software project uses coding standards to enforce a consistent style. Tekkotsu users should follow the Tekkotsu coding style. For example, in Tekkotsu, class names begin with capital letters; instance always begin with a lowercase letter. Also, Tekkotsu uses camelCaseIdentifiers rather than underscore_separated_identifiers. There is no formal document specifying the Tekkotsu coding style, but it has a lot in common with the Google C++ coding style, which is worth studying. Here are some resources:
Online references:
Books:
- C++ Coding Standards: 101 Rules, Guidelines, and Best Practices, by Herb Sutter and Andrei Alexandrescu
Standard Template Library
Tekkotsu makes heavy use of the STL container classes. These references will come in handy:


