Red Green Repeat Adventures of a Spec Driven Junkie

Journey to TDD - First Job

If you found this article and want to start at the beginning, this series starts here.

When I discovered Ruby after a recommendation from an old coworker, I started to improve my software development practice.

Even when knowing about the tools, it’s important to be in a working environment where everyone respects testing.

Awareness and knowledge are nothing without application.

I was fortunate that I the company I joined after took testing seriously. So seriously that it felt like I spent 75% of my working time just writing tests.

Yes, I wrote tests 50% of the time, code to make those tests pass 25% of the time, and 25% would be refactoring. Pull requests were full of green (for tests) and little red (for code) - except for bugs.

It wasn’t just me that wrote tests, my manager as well. Code reviews were great - I start every review reading the tests. As long as the tests pass, I was confident the code is solid.

Next I share a code style insight I have from working in a TDD heavy environment.