tnypxl<p>Writing unit tests for <a href="https://mstdn.social/tags/code" class="mention hashtag" rel="tag">#<span>code</span></a> where the original <a href="https://mstdn.social/tags/developer" class="mention hashtag" rel="tag">#<span>developer</span></a> didn't consider testability is painful! Because now they have to refactor a bunch of code so it is testable. TDD isn't about writing tests first and the implementation second. It's about being proactive and intentional in your implementation and code quality.</p><p><a href="https://mstdn.social/tags/RedGreenRefactor" class="mention hashtag" rel="tag">#<span>RedGreenRefactor</span></a> <a href="https://mstdn.social/tags/TDD" class="mention hashtag" rel="tag">#<span>TDD</span></a> <a href="https://mstdn.social/tags/golang" class="mention hashtag" rel="tag">#<span>golang</span></a></p>