You can’t hear DC

Recently one of my team members found a bug in some old code while doing a code review.  Our application was generating a sine wave to be rendered by the audio hardware.  The sample format isn’t important except to note that it is an unsigned value between 0 and MAX = 2*FS_AMP.  The bug is…

4

The Rules of Code Optimization

Steve Rowe recently talks about who you’re really writing for when you write code.  The argument he makes is essentially that your primary audience is not the compiler, but rather your primary audience is other developers.  This is something I believe strongly. Steve also makes a point about premature optimization, and how it affects readability. …

3