Chapter 27. Coding Style Guide

Table of Contents

27.1. General Rules
27.2. Naming Conventions
27.2.1. Code
27.2.2. Files
27.2.3. MeVisLab/ML Identifiers
27.2.4. MDL Layout
27.3. General Programming
27.4. C++
27.5. Python
27.6. ML Programming
27.7. MDL

(Version as of 2010/04/22.)

Aspects covered in this chapter:

Legend:

Meta Rules

27.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.