CoAutomation Inc.

Main menu

Skip to content
  • Home
  • About Us
  • Blog
  • Coriandolo Radio
  • Contact CoAutomation

Category: Constructing Code

Testing the code path less travelled

Posted on 2019 February 24 by Craig Goldman
Do you always create test cases for the code path less travelled – the unusual code path that rarely occurs.  Are you sure?  On...
Constructing Code Building code, Testing code

Commentary on Comments

Posted on 2019 January 13 by Craig Goldman
This should not be hard – comment the code.  Create documentation so code can be read, understood, and easily modified by both yourself (the...
Constructing Code

Your function bodies are too fat

Posted on 2018 December 4 by Craig Goldman
Without peeking, I’m willing to bet your function bodies are too fat. Your procedures are too big.  They contain too much detail, too many...
Constructing Code Building code, CoAutomation

Some things are “volatile”

Posted on 2018 November 18 by Craig Goldman
When writing code for devices, the programmer will encounter some things that are volatile – variables which must be declared with the volatile keyword. ...
Constructing Code

Why I don’t “while”

Posted on 2018 October 28 by Craig Goldman
I don’t “while”.  I don’t use the C “while” command to build loops.  I also don’t “do while”.  I think you shouldn’t either. Years...
Coding Style, Constructing Code
Recent Posts
  • Why I like Cyclomatic Complexity and Why I don’t
  • Testing the code path less travelled
  • Commentary on Comments
  • You gotta have style — a C style sheet
  • Your function bodies are too fat
Recent Comments
    Archives
    • March 2019
    • February 2019
    • January 2019
    • December 2018
    • November 2018
    • October 2018
    Categories
    • Coding Style
    • Constructing Code
    • General
    © CoAutomation Inc.