Unit Testing With Test Driven Development
Most of us have tried to get better about unit testing, with varying degrees of success. Some folks even manage to succeed. Whether it is due to inexperience, frameworks designed without consideration of testing, or simple management resistance to regular testing, the challenges to getting it right are substantial. However, the rewards are great, which is why we’ve brought John Callaway and Clayton Hunt on the show.
“A comprehensive unit test suite beats outdated documents any day.”
We met John at DevSpace in Huntsville, AL last year. He stopped by our booth and chatted with us which lead to slack and email conversations and ultimately this episode. A Microsoft MVP, John has been a professional developer since 1999. He has focused primarily on web technologies and has experience with everything from PHP to C# to ReactJS to SignalR. Clean code and professionalism are particularly important to him, as well as mentoring and teaching others what he has learned along the way.
The book is for software developers with a basic knowledge of Test Driven Development (TDD) who want a thorough understanding of how TDD can benefit them and the applications they produce. The examples in this book are in C#, and you will need a basic understanding of C# to work through these examples.
Unit testing is a valuable skill to have, no matter where your code runs or what it does. It reduces the error rate of your software and can often help force a better structure into your code. In addition, this practice can make it easier to make large changes to your software with less risk, as well as making it easier for new developers to understand the structure of your software.
The Hammer of Healing and Destruction
The idea is that the war hammer is a LARP weapon that can both heal and hurt. Using the Adafruit LSM303 sensor, the weapon will track your moments to determine what mode you have selected (heal or harm) or how much damage your hit dealt. It will track what your movement to determine the amount of damage and calculate that for you. To heal you have to place it in a healing mode by holding it in a certain position for a certain amount of time. While this post is just a proof of concept it’s still a cool idea to bring a bit of technology and IoT into the middle ages.
Tricks of the Trade
Our use of the word bug trivializes the kinds of problems we can create in our software. We should start using the term defect because of the problems that we can cause by having them in our software.