Changes between Version 12 and Version 13 of CodingRules


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

--

Legend:

Unmodified
Added
Removed
Modified
  • CodingRules

    v12 v13  
    37370. Keep your code linear! Avoid using a lot of if-else and blocks in loops. Use *continue* and *break* instead (easier to read, human brains have difficulties to handle to many levels, better fits on the screen, easier to optimize)
    38380. avoid using c-style comments (/* ... */) if you comment a whole line
     390. Use forward declaration whenever possible instead of includes (compile time)
     400. Do **never** use global variables, except you have discussed that with everybody else before.
     410. Try to avoid static variables (only use them if it is really unavoidable -- think twice)
    3942
    4043