Entrepreneur Geek

Nirav Mehta on life, technology and future

Six ways to write more comprehensible code

with one comment

IBM developerWorks has a nice beginners article about how to write code that others (and you, 3 months down the lane) can understand.

The six tips are:

  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.

The resources section at the end of the article lists some good food for after thought! If you want to improve your code, go check out the article!

Related posts:

  1. Don Miguel Ruiz’s Four Agreements – code for life and personal development Ravi Malagi sent this to me and I found it...

Written by Nirav

August 16th, 2007 at 5:58 pm

 

One Response to 'Six ways to write more comprehensible code'

Subscribe to comments with RSS or TrackBack to 'Six ways to write more comprehensible code'.

  1. Simple and nice. Was a good reality check !!

    Raseel

    18 Aug 07 at 12:28 am

Leave a Reply