Archive for June 2nd, 2007

Coding: Six ways to write more comprehensible code

June 2nd, 2007

From IBM there’s the Six ways to write more comprehensible code – How to keep your code from destroying you. Usefully it provides examples for:

  1. Comment like a smart person
  2. Use #define a lot. No, a LOT
  3. Don’t use variable names that will mock you
  4. Do error checking. You make errors. Yes, you
  5. “Premature optimization is the root of all evil.” – Donald Knuth
  6. Don’t be too clever by half.
gamy-dance