How Do I Test This?

I’ve no idea where I first came across the following premise for when starting a new code change: “First ask yourself, how do I test this?” I had assumed it was Steve Maguire’s Writing Solid Code or Debugging the Development Process as these are two of the earliest books I read as a professional developer. He has some excellent advice in “step through your code in the debugger” and “how could I…