Programming
Practical C Macro Patterns for Embedded Driver Development
C macros get a bad rap—often deservedly so. But when developing drivers for embedded systems, carefully crafted macros can eliminate entire classes of …
Stop Using Sliding Windows When You Just Need a Smooth Signal
I review a lot of code, and I keep seeing the same mistake over and over. Someone needs to smooth out a noisy signal (maybe sensor data, maybe user …
The Typestate Pattern: Where the Rust Type System Shines
If you’ve been writing Rust for a while, you’ve probably encountered a peculiar but elegant pattern: structs that consume themselves to …