10 ways to improve your code

Interesting post on The Reg about Neil Ford‘s talk about how to improve you code. The talk was aimed at Java developers but there’s good advice for everyone in there. Here’s what he said in a nutshell:

  1. Write tests before writing the code
  2. Use static analysis tools
  3. Practice “good citizenship” by paying attention to how well your objects interact with the outside world
  4. Avoid indulging in speculative software development
  5. Simplify essential complexity and kill accidental complexity
  6. Challenge programming conventions
  7. Embrace single level of abstraction principle
  8. Leverage existing platforms with languages targeted at specific problems and applications
  9. Learn every nuance of the languages you are using
  10. Change your perspective and consider “antiobjects

Phew . . I actually typed those out on my notebook computer was reading them off my desktop. There’s some definite wisdom in there. I don’t know if any of your cringed because you were guilty of breaking some of those in the past. I know I have. Read the complete synopsis here.


Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.