David Hayes

David is a developer from Fort Collins, Colorado. He’s worked with PHP for over a decade, and does a lot of intensive backend work, a fair bit of JavaScript, and dabbles with CSS. While big into WordPress—he owns and runs the popular development tutorial site WPShout—he has experience with everything from old school PHP to the latest and greatest of Symfony and Laravel.


How to Learn PHP Unit Testing With Katas

By David Hayes

Sometimes code is first tested when the unfortunate client or user feels like using the feature and tests the developer’s work. Hopefully, they’re not disappointed. That’s why you should be interested in unit testing and Test-Driven Development (TDD)—because it makes your life as a programmer better. It would have saved me hours of work in situations like those outlined in the last paragraph. TDD and automated testing let us focus on what we’re there for: solving complicated problems with code and leaving the computers to do more of the rest.

Published in Better Practice – December 2018, December 2018