Chapter 25. Coding Style Guide

Table of Contents

25.1. General Rules
25.2. Naming Conventions
25.2.1. Code
25.2.2. Files
25.2.3. MeVisLab/ML Identifiers
25.2.4. MDL Layout
25.3. General Programming
25.4. C++
25.5. Python
25.6. ML Programming
25.7. MDL

(Version as of 2010/04/22.)

Aspects covered in this chapter:

Legend:

Meta Rules

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