vesterberg.se

Solving problems, finding new ways – applied systems thinking
  • Home
  • systems thinking
  • resources
  • work
  • interests
    • electronics
    • electric bass
  • about
  • help
  • Swedish texts

The code should tell the story

October 31, 2006 | 1:41 pm

So you are a developer and create programs. Believe it or not, someone will come after you and work on your code. We should write our code for those that come after us. Documentation is often neglected in projects or is too far from the code, so that when the code changes, documentation does not.

A step in the right direction is that we let the code tell the story. As you write, you choose names that speak. Your coding of algoritms and solutions should be obvious. Educate yourself in the conventions, best practises and patterns of the language you use. Don’t use smart coding if you are not forced to do it for performance reasons. If you make design decisions, add why you did as you did. Reveal your thinking in the code. Add the purpose of your methods as comments. Always write comments and code together and at the same time. I can guarantee that what you plan to add afterwards, is never done.

If you have done smart-coding, someone will spend a lot of hours trying to understand how it works. Imagine how much time, effort and money that is wasted this way. The time you save when you take a short cut is lost three times when someone after you will continue to work on your application.

See your code as a living thing. It will continue to live after you have left it. Our attitude and perception of the works of our hands is what will rule and govern our habits.

Categories
software
Comments rss
Comments rss
Trackback
Trackback

« Using floating thumb Recognizing the small steps »

Leave a Reply

Click here to cancel reply.

Subscribe

Your email:

 

Recent Posts

  • System Dynamics course again
  • Absorbing variety
  • What I offer
  • Tell me your story
  • Coming together – creating ideas

Recent Comments

  • anders on System Dynamics course again
  • Henry on System Dynamics course again
  • websites directory on Crossing the border – art and design
  • anders on Thomas Johnson on Lean thinking
  • MCP Europe on Thomas Johnson on Lean thinking
  • anders on Absorbing variety
  • anders on System Dynamics learnings so far
  • Gordon Kennedy on System Dynamics learnings so far

Archives

electric bass

  • Bass Player’s Lowdown

green

  • Permaculture
  • The World Resources Institute
  • Transition Towns
  • Wiser Earth
  • World Changing

new ideas

  • Fast Company
  • TED – Ideas worth spreading
  • Wired

software

  • Code better
  • InfoQ
  • Serverside.com

thinking

  • Berkana Institute
  • ISEE systems
  • Mental Model Musings
  • MIT Sloan Faculty
  • Pegasus Communications
  • Society for Organizational Learning
  • Stockholm Resilience Centre
  • Tällberg Foundation
  • World Cafe

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org

Categories

  • electric bass
  • green
  • leadership
  • music
  • personal
  • software
  • thinking
  • Uncategorized

Tags

accounting control activism agile art bass technique cognition colonialism compassion creativity dialogue diversity economics feedback flow gaming inner life leadership lean thinking learning mana management mindfulness model nature pics project management reading reflection relationship resilience reviews scrum service design simulation social media software stock system dynamics basics systems dynamics systems thinking the world cafe trekking videos Weinberg writing
rss Comments rss valid xhtml 1.1 design by jide powered by Wordpress get firefox
Blog Flux Directory Software Blogs - Blog Catalog Blog Directory Add to Technorati Favorites Best Green Blogs Bloggportalen