March 10, 2008

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.

2 Readers Commented »

  1. Some good advice. I especially think writing test before you right code can help.

  2. smail on August 12th, 2008

    2

  3. what is the meaning of “Write tests before writing the code” ?
    sorry I’m a newbie

Leave a Comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Media Corner

2

3

4

5

6

  • Cloudshout

  • Scoutle

  • Gadget Corner

  • Entrecard

  • EntreDroppers

  • Linkage

  • Networking