wiki:Coding Standards for CIVL models

Coding Standards for CIVL models

  1. place one blank line between elements in a file (an element is a variable, method, or type definition, etc)
  2. all local variables declared in a block (i.e., a compound statement in curly braces) should appear at the top of the block, followed by a blank line, followed by the statements in that block; this greatly enhances readability
  3. break up a function into smaller pieces if it gets too long
  4. use two spaces for alignment
Last modified 12 years ago Last modified on 02/21/14 11:00:25
Note: See TracWiki for help on using the wiki.