31 May 2007

Write better code

There is an interesting talk on Slashdot about coding here. It's good to see that there is still occasionally some discussions about programming on there.

The article is about Six Ways To Write More Comprehensible Code. It makes size points:
  1. Comment well and often.
  2. Use sensible names not obscure constants.
  3. Use variables with descriptive names.
  4. Do error checking.
  5. "Premature optimization is the root of all evil." - Donald Knuth
  6. Don't be too clever.


The article is a nice little bit about writing better code. Personally I rate number 5 very highly, in fact I should write an article about writing better code from my point of view.