I’ve finished reading book The Pragmatic Programmer and it has few interesting advices how to write better code and be better programmer. Here are some points that have great value to me (I’ve read it in czech so excuse if some term are badly double-translated :)):

  1. Take responsibility over your code, your work.
  2. Read technical book every month.
  3. Involve in community.
  4. No redundancy in code nor in documentation.
  5. Get the most orthogonality you can - every module should be independent of other modules.
  6. Reversibility - you should be able to take back every decision.
  7. Plain text is better than binary files.
  8. Don’t be scared of refactoring.
  9. Don’t let broken windows unfixed. Broken windows are those part of code/architecture you don’t like. After some time the rest of your code spoils too.
  10. Automate everything you can.

It’s just list of thing I would like to remember and keep too. Anyway I recommend this book, it’s interesting and fun to read.