Unit Testing: What it is, Why you should be doing it, and how to do it


Michael Feathers defines “legacy code” as “code that has no unit tests”. Without unit tests your code is fragile, hard to change, and unreliable. Unit testing is the only way that you can be sure that your code does what it is supposed to do.

This talk discusses the basics of Unit Testing by defining terms, discussing what Unit Testing is and is not, and talking about the best techniques and practices for writing unit tests.

All the demos will be in Delphi code, but the principles all remain the same: There no longer is an excuse for not writing unit tests.

Nick Hodges

Nick Hodges is a Software Developemnt Manager at Gateway Ticketing Systems. A long-time Delphi developer, he has recently turned his attention to TypeScript and Angular.

Nick has a BA in Classical Languages from Carleton College and an MS in Information Technology Management from the Naval Postgraduate School. In his career he has been a busboy, a cook, a caddie, a telemarketer (for which he apologizes), an Office Manager, a high school teacher, a Naval Intelligence officer, a software developer, a product manager, and a software development manager. In addition, he is a former Delphi Product Manager and Delphi R&D Team Manager. He’s a passionate Minnesota sports fan — especially the Timberwolves — as he grew up and went to college in the Land of 10,000 Lakes. He currrently lives with his family in Gilbertsville, PA.