CoAutomation Inc.

Main menu

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

Author Archives: Craig Goldman

Why I like Cyclomatic Complexity and Why I don’t

Posted on 2019 March 31 by Craig Goldman
“Cyclomatic complexity is a software metric used to indicate the complexity of a program. It is a quantitative measure of the number of linearly...
General

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

You gotta have style — a C style sheet

Posted on 2018 December 16 by Craig Goldman
Every C programmer, and every programming team that uses C, must have a C style sheet — a description of how the C program...
Coding Style

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

Advice on debugging software from Sherlock Holmes

Posted on 2018 November 24 by Craig Goldman
Here is some timeless advice on debugging software from Sir Arthur Conan Doyle’s fictional detective Sherlock Holmes. “There is nothing as deceptive as an obvious fact”...
General Code Debugging

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

You should use a Debugging Mark

Posted on 2018 November 11 by Craig Goldman
Using a Debugging Mark can be one of the easier, yet more powerful tools in your programmer’s tool kit.  Yet many developers have never...
Coding Style CoAutomation, Code Debugging

For whom are you writing the code

Posted on 2018 November 4 by Craig Goldman
I think it is important to understand for whom you are writing the source code.  Once upon a distant time, I was a manager....
General CoAutomation

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
1 2 Next ›
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.