An enum combined with a lookup table presents a unique code maintenance concern. Learn more in this post.
Tag: maintenance
Code maintenance and magic numbers
We encounter many forms of magic numbers in the field of firmware and embedded software. How do we ensure maintainable code when working with these values? This post provides an exampl
Why I prefer C++: “RAII All The Things!”
Learn how the C++ RAII idiom enables better code with reduced maintenance overhead.
Favorite Tricks: Static Assert
One of my favorite software development "tricks" is making frequent use of any "static assert" feature provided by the compiler. This trick's primary benefit is in moving certain error conditions to compile-time rather than run-time. Embedded software engineers would be wise…