Changes between Version 32 and Version 33 of Developer/Coding/Conventions


Ignore:
Timestamp:
May 30, 2014, 12:23:05 AM (5 years ago)
Author:
Gedare
Comment:

/* Robustness */ New section to deal with writing more robust code.

Legend:

Unmodified
Added
Removed
Modified
  • Developer/Coding/Conventions

    v32 v33  
    3030 *  Use two spaces for indentation, four spaces for hanging indentation.
    3131 *  Adhere to a limit of 80 characters per line.
    32  *  Check all return statuses.
    3332 *  Do not mix variable declarations and code.
    3433 *  Avoid deep nesting by using early returns
     
    4039 *  Avoid complex logical expressions in ifs, fors, and whiles
    4140 *  Avoid inlining methods with complicated logic and decision points
     41= Robustness =
     42
     43 *  Check all return statuses.
    4244 *  Use debug assertions.
    43 
    4445= Miscellaneous =
    4546