An enum combined with a lookup table presents a unique code maintenance concern. Learn more in this post.
Tag: static_assert
Stopping Bugs: Seven Layers of Defense
Preventing software bugs from reaching our customers requires multiple layers of defense. This post explores seven layers of bug prevention.
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…