Chapter 29. Coding Style Guide

Table of Contents

29.1. General Rules
29.2. Naming Conventions
29.2.1. Code
29.2.2. Files
29.2.3. MeVisLab/ML Identifiers
29.2.4. MDL Layout
29.3. General Programming
29.4. C++
29.5. Python
29.6. ML Programming
29.7. MDL

(Version as of 2010/04/22.)

Aspects covered in this chapter:

Legend:

Meta Rules

29.1. General Rules

  • (!) 01.01: Write everything in English (comments, names, variables, documentation...).

  • (!) 01.02: Be consistent. Even if you decide not to follow some of the rules, do it at least consistently. Never produce code with different styles of programming.

  • (!) 01.03: Insert the copyright placeholder and the recommended file header at the top of files. Do not use old copyright headers.