tag:blogger.com,1999:blog-2524678972955021559.post98802192886660807..comments2023-08-07T09:15:42.586-07:00Comments on Jay Bazuzi's coding blog: Why we Test, part 2: DesignUnknownnoreply@blogger.comBlogger2125tag:blogger.com,1999:blog-2524678972955021559.post-37543855264415544172014-12-30T14:01:42.751-08:002014-12-30T14:01:42.751-08:00I can't believe these 2 panels did not debate ...I can't believe these 2 panels did not debate the idea that TDD turns testing into a design activity http://martinfowler.com/articles/is-tdd-dead/ http://lanyrd.com/2014/developbbc/sdgfpr/<br /><br />Back in May 2014, when Martin Fowler asked for suggestions for topics for round two of the first panel ("Is TDD Dead"), I tweeted the following at @dhh @martinfowler @KentBeck @unclebobmartin @sf105 @natpryce: <br /><br />before debating the fallacy that "an easier to unit test system is a better designed system" and that "you can only prove your design by making it more testable" why not involve Steve Freeman and Nat Pryce who say (in GOOS): "We write our tests BEFORE we write code. Instead of just using testing to verify our work after it is done, TDD turns testing into a DESIGN activity. We use testing to clarify our ideas about WHAT we want the code to do. As Kent Beck described it to us, 'I was finally able to separate logical from physical design...'. We find that the effort of writing a test first also gives us rapid feedback about the quality of our design ideas - that making code accessible for testing often drives it towards being cleaner and more modular." <br /><br />That had no effect. I was hoping that Nat Pryce's presence on the second panel would make a difference, but no.<br /><br />PhilipPhilip Schwarzhttps://www.blogger.com/profile/02202819885723986161noreply@blogger.comtag:blogger.com,1999:blog-2524678972955021559.post-27415198462892763092014-12-30T13:44:17.538-08:002014-12-30T13:44:17.538-08:00From Forgotten Refactorings (http://hamletdarcy.bl...From Forgotten Refactorings (http://hamletdarcy.blogspot.com.es/2009/06/forgotten-refactorings.html): "don't touch anything that doesn't have coverage. Otherwise, you're not refactoring; you're just changing shit."Philip Schwarzhttps://www.blogger.com/profile/02202819885723986161noreply@blogger.com