element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Embedded and Microcontrollers
  • Technologies
  • More
Embedded and Microcontrollers
Embedded Forum The Ten Coding Commandements - for bug free software.
  • Blog
  • Forum
  • Documents
  • Quiz
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Embedded and Microcontrollers to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 3 replies
  • Subscribers 491 subscribers
  • Views 499 views
  • Users 0 members are here
  • microcontrollers
  • software
Related

The Ten Coding Commandements - for bug free software.

Former Member
Former Member over 15 years ago

I have been on a quest to educate people about the quality of software in embedded systems for about three years or so now. As part of my travels to various companies I have compiled a list of ten things design teams should be doing if they are serious about reducing the number of bugs they have in their software. It's a quick and easy litmus test on the effort your company goes to to ensure the software you write is bug free. A high score means you are doing the right things whilst a lower score suggests you software in vulnerable to hidden bugs. Take the test at the end and post a reply with some basic feedback for the other bloggers.

http://www.youtube.com/watch?v=A78saoX2msM

 

The basic presentation without the naration is available here as an attachment also.

Attachments:
image60 The Ten Coding Commandments.pdf
  • Sign in to reply
  • Cancel
  • WestfW
    WestfW over 15 years ago

    Slide 5 ("Version Control") doesn't mention version control of the tools (compiler, etc), which is almost certainly a very good idea as well.

     

    One wonders whether the ideal sized environment, where customers, marketing, development, and test are all big and cluefull enough to be effective at their portions of the process, while still being small enough to effectively communicate with each other, actually exists except for brief instants in time :-(   http://www.businessballs.com/treeswing.htm  and  http://xkcd.com/844/

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 15 years ago in reply to WestfW

    Thanks for the feedback. Yes- version control of the tools is important, especially the compiler. Did you score your own company/last project if so I'd be happy to  see what you did get.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • WestfW
    WestfW over 15 years ago in reply to Former Member

    With the "big company" shoes on, I think we at least claim to do (and spend a lot of time TRYING to do) everything except unit test at the single function level, which I don't think scales to the size of our product(s.)

     

    Your commandments are a bit hard to apply to the class of "embedded system" where the base hardware is a desktop class cpu running linux or windows.  Test cases in particular multiply to infinity, and our biggest problems are due to unforseen interactions.

     

    There's something missing WRT the differences between a new product, a new feature, and a new bugfix, but I can't quite put my finger on it.

     

    The XKCD cartoon is particularly real; whenever the code is perfect and exactly matches the requirements documents, it seems that it's not what the customers wanted after all.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube