Changes between Version 12 and Version 13 of CodingRules
- Timestamp:
- 11/26/13 15:45:11 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CodingRules
v12 v13 37 37 0. 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) 38 38 0. avoid using c-style comments (/* ... */) if you comment a whole line 39 0. Use forward declaration whenever possible instead of includes (compile time) 40 0. Do **never** use global variables, except you have discussed that with everybody else before. 41 0. Try to avoid static variables (only use them if it is really unavoidable -- think twice) 39 42 40 43