Skip to content

re: What was your TDD aha moment? VIEW POST

re: One of the biggest "aha"'s I've had was when working on a legacy codebase with very few unit tests. I needed to change the behavior of a couple of...

Same here. Was implementing an embedded client of a client/server system. I did write tests but not TDD. Then, our backend developer left and I needed to take over the code. It was a complete mess, it was slow, Spaghetti code and no tests. Developer horror story. Then I wrote test by test to freeze the current behavior, found and fixed tons of bugs and threw away half of the code after refactoring.
From that moment on I was in love with TDD. The next project I did was all TDD: Zero bugs in production.

code of conduct - report abuse