extreme-programming test-driven-development software-engineering humble-object
I have been working on an internal firm CLI recently. This is written in dotnet 8, and I am using Spectre Console. Coincidence that I was writing my blog about My TDD Pilgrimage, and I was hitting rock bottom trying to test code I was adding in my Program.cs. What an irony. As I started asking around and also doing my research in parallel I came across the following 2 links: The links above provide comprehensive information about the humble object. Inspired by this, I rolled up my sleeves and started refactoring my code to make it more testable. Follow along as I first explain the pattern and then demonstrate, through a simple example, how you can refactor your own code to enhance testability. Together, we'll break down each step, making this concept easy to grasp and implement in your own projects.
Posted on 15 Jul 2024
extreme-programming test-driven-development software-engineering
In 2010, I was working at a startup and a colleague did a show-and-tell about unit tests. It was my first job, I had never seen unit tests before, and in all honestly, I completely disliked it. Initially, thought it was a waste of time. Today in 2024, I have a very unsettling feeling if I end up writing a code without writing tests first. I have always wondered why I had an allergic reaction at the beginning and why it took me the time it did to warm up to this practice. So I started to roadmap key milestones I had in the last 14 years and the agents that brought about this change for me.