Changes between Version 13 and Version 14 of CodingRules


Ignore:
Timestamp:
11/26/13 15:49:11 (12 years ago)
Author:
tbretz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CodingRules

    v13 v14  
    27270. Use gRandom and do not define your own TRandom object. The global scope will take care of that. A major advantage of simulations is to be able to set a global(!) seed.
    28280. For proper documentation, please have a look at other classes. Note that FACT++ and Mars style is slightly different. Mars is using THtml with some Mars specific setup, FACT++ is using doxygen.
    29 0. Never define constants as preprocessor directives. Generally avoid preprocessor directives.
     290. Never define constants as preprocessor directives. Generally avoid preprocessor directives. If you really need them use upper case only.
    3030o. omit else in constructions like *if (...) return x; [else] ....*
    31310. Source files have the extension cc, header files the extension h, C source files just c.
     
    40400. Do **never** use global variables, except you have discussed that with everybody else before.
    41410. Try to avoid static variables (only use them if it is really unavoidable -- think twice)
     420. directory names should be lower case only (to easy distinguishable from source code files)
     430. typedefs should end with a _t like UInt_t
     44
    4245
    4346