Six ways to write more comprehensible code

Great article over at ibm developerworks. The six points are:

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

I love the point 5, and agree wholly with it. Read the entire article here.

This entry was posted in software and tagged , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s