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...
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...
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...
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. ...
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...