Programming Naming Conventions

De Transport
Version datée du 12 août 2012 à 22:11 par NicolasSaunier (discussion | contributions) (Page créée avec « I tend to favour the following rules, as can be seen in the Traffic Intelligence project * UpperCamelCase for classes * … »)
(diff) ← Version précédente | Version actuelle (diff) | Version suivante → (diff)
Aller à la navigationAller à la recherche

I tend to favour the following rules, as can be seen in the [Intelligence project]

  • UpperCamelCase for classes
  • lowerCamelCase for methods
  • all upper cases for constants
  • explicit names, even if they have to be long, for variables
  • 4 spaces for indentation in Python code (no tab!)
  • shared pointers in C++
  • const and references for function arguments wherever possible in C++

Other resources