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.