<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://devpinoy.org/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Jop's Work : tdd</title><link>http://devpinoy.org/blogs/jop/archive/tags/tdd/default.aspx</link><description>Tags: tdd</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 SP1 (Build: 31106.3070)</generator><item><title>Slow Start - Testaments and Books</title><link>http://devpinoy.org/blogs/jop/archive/2008/11/26/slow-start-testaments-and-books.aspx</link><pubDate>Tue, 25 Nov 2008 23:32:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:33415</guid><dc:creator>jop</dc:creator><slash:comments>4</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devpinoy.org/blogs/jop/rsscomments.aspx?PostID=33415</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devpinoy.org/blogs/jop/commentapi.aspx?PostID=33415</wfw:comment><comments>http://devpinoy.org/blogs/jop/archive/2008/11/26/slow-start-testaments-and-books.aspx#comments</comments><description>Here is my answer to Keith&amp;#39;s Bible App challenge . I know the deadline has already passed but I want to do it the TDD way, so here it is. Again, the requirements. The user should be able to search for books based on a selected Testament (Old and New...(&lt;a href="http://devpinoy.org/blogs/jop/archive/2008/11/26/slow-start-testaments-and-books.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=33415" width="1" height="1"&gt;</description><category domain="http://devpinoy.org/blogs/jop/archive/tags/tdd/default.aspx">tdd</category><category domain="http://devpinoy.org/blogs/jop/archive/tags/unit-test/default.aspx">unit-test</category></item><item><title>Google Tech Talks -- Unit Testing</title><link>http://devpinoy.org/blogs/jop/archive/2008/11/07/google-tech-talks-unit-testing.aspx</link><pubDate>Thu, 06 Nov 2008 20:35:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:32094</guid><dc:creator>jop</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devpinoy.org/blogs/jop/rsscomments.aspx?PostID=32094</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devpinoy.org/blogs/jop/commentapi.aspx?PostID=32094</wfw:comment><comments>http://devpinoy.org/blogs/jop/archive/2008/11/07/google-tech-talks-unit-testing.aspx#comments</comments><description>(Please visit the site to view this media) A 32-min intro on unit testing. Watch it. Four stars....(&lt;a href="http://devpinoy.org/blogs/jop/archive/2008/11/07/google-tech-talks-unit-testing.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=32094" width="1" height="1"&gt;</description><category domain="http://devpinoy.org/blogs/jop/archive/tags/tdd/default.aspx">tdd</category><category domain="http://devpinoy.org/blogs/jop/archive/tags/training/default.aspx">training</category><category domain="http://devpinoy.org/blogs/jop/archive/tags/unit-test/default.aspx">unit-test</category></item><item><title>I told you so.</title><link>http://devpinoy.org/blogs/jop/archive/2008/11/04/i-told-you-so.aspx</link><pubDate>Tue, 04 Nov 2008 08:10:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:32048</guid><dc:creator>jop</dc:creator><slash:comments>6</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devpinoy.org/blogs/jop/rsscomments.aspx?PostID=32048</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devpinoy.org/blogs/jop/commentapi.aspx?PostID=32048</wfw:comment><comments>http://devpinoy.org/blogs/jop/archive/2008/11/04/i-told-you-so.aspx#comments</comments><description>I can&amp;#39;t stop but smile at what I&amp;#39;ve written in this forum thread . A decade ago, I am constantly having this similar debate with my managers, project leader, team leader, quality engineers, etc. about the merits of unit testing. As I was still...(&lt;a href="http://devpinoy.org/blogs/jop/archive/2008/11/04/i-told-you-so.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=32048" width="1" height="1"&gt;</description><category domain="http://devpinoy.org/blogs/jop/archive/tags/tdd/default.aspx">tdd</category><category domain="http://devpinoy.org/blogs/jop/archive/tags/unit-test/default.aspx">unit-test</category></item><item><title>Spreading the Infection</title><link>http://devpinoy.org/blogs/jop/archive/2006/09/29/Spreading-the-Infection.aspx</link><pubDate>Fri, 29 Sep 2006 03:19:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:5366</guid><dc:creator>jop</dc:creator><slash:comments>2</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devpinoy.org/blogs/jop/rsscomments.aspx?PostID=5366</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devpinoy.org/blogs/jop/commentapi.aspx?PostID=5366</wfw:comment><comments>http://devpinoy.org/blogs/jop/archive/2006/09/29/Spreading-the-Infection.aspx#comments</comments><description>&lt;P&gt;cruizer raised a thread on the forums:&amp;nbsp;&amp;nbsp;&lt;A href="http://devpinoy.org/forums/thread/5317.aspx"&gt;Suggest a good demo for TDD for .NET MSDN Event&lt;/A&gt;. I wrote this as a reply on his thread.&lt;/P&gt;
&lt;P&gt;
&lt;HR&gt;

&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I've also done a few short courses about TDD. Despite my mediocre communication and delivery skills, attendees still rate the courses highly (I think they don't want to hurt my feelings).&amp;nbsp;But I'm most concerned about this question: &lt;EM&gt;How can &lt;STRONG&gt;I&lt;/STRONG&gt; apply it to my &lt;STRONG&gt;project&lt;/STRONG&gt;&lt;/EM&gt;? You've shown us a program for scoring bowling games. So what? I'm not writing that type of application. Wow, now I know how to convert numbers to words. Btw, we have an existing library that does that. It can also handle different languages so you can print cheques in french, german, chinese&amp;nbsp;and with a few configuration changes, even alibata.&amp;nbsp;My application has a UI. It writes to a database. It accesses a web service. It employs some wierd calculations that depending on some random user input. How can TDD help me there? Do you have a demo about that, too?&lt;/P&gt;
&lt;P&gt;From the feedback that I got from the attendees, I've dreamed up this training course.&lt;/P&gt;
&lt;P&gt;
&lt;HR&gt;

&lt;P&gt;&lt;/P&gt;
&lt;P&gt;The scenario is this: you are one of the developers&amp;nbsp;of on ongoing&amp;nbsp;application designed using TDD. You've got a new team member [pick someone in the audience to act as the new guy] and he is given a task: to implement a new piece of functionality [estimated to take about an hour or two] and add it to the application. As a new joiner, he knows&amp;nbsp;nothing about the application. As one of the developers of the application, you are responsible for introducing him to the&amp;nbsp;team practice&amp;nbsp;of test driven development. You are going to pair with him and help him implement the new functionality. You will initiate the discussion by writing the first test and he will try to implement them. If he is stuck, you'll switch places. The other attendees watch and learn along with your (hopefully) willing victim.&lt;/P&gt;
&lt;P&gt;Pros:&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;It is a real world example involving an existing application. Attendees would immediately see the benefit of TDD in terms of how it helps in the design of the new functionality. 
&lt;LI&gt;Attendees would see a clear benefit of maintaining a large number of running tests. 
&lt;LI&gt;They'll have an existing application to refer to whenever they want to know something about TDD. How do you test a database? How do you test the UI? What do tests look like? How many tests do I need to write? Show them the code and let them use it as a template. 
&lt;LI&gt;It is very interactive. It no longer matters if other attendees feel sleepy because&amp;nbsp;you've got the full attention of your victim. 
&lt;LI&gt;At the very least,&amp;nbsp;one of the attendees would surely be able to guage how hard/easy it is to start doing TDD. You picked someone in the audience, a beginner, to have a hands-on designing and coding using TDD. If you happen to "infect" him too, that's good enough for me. :D&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;Cons:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;You need to write an application that you can demo or you need an existing&amp;nbsp;application to use, probably, open source. 
&lt;LI&gt;It might be hard to direct. You are picking a random someone from the audience. This is no longer just a presentation. You can try creating a script and let your victim just read from the script but that would make this less real. 
&lt;LI&gt;It might take longer that time allotted to you. But I guess that's a good thing too. 
&lt;LI&gt;You might need some special hardware (handsfree mic and a good projector, for example) for this to work. 
&lt;LI&gt;I haven't tried this on a presentation yet, so it might not work. :D&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;Will this work? Add some nice, hot food and&amp;nbsp;it surely will.&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=5366" width="1" height="1"&gt;</description><category domain="http://devpinoy.org/blogs/jop/archive/tags/tdd/default.aspx">tdd</category><category domain="http://devpinoy.org/blogs/jop/archive/tags/training/default.aspx">training</category></item><item><title>xUnit Patterns</title><link>http://devpinoy.org/blogs/jop/archive/2006/09/22/xUnit-Patterns.aspx</link><pubDate>Fri, 22 Sep 2006 02:49:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:5249</guid><dc:creator>jop</dc:creator><slash:comments>2</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devpinoy.org/blogs/jop/rsscomments.aspx?PostID=5249</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devpinoy.org/blogs/jop/commentapi.aspx?PostID=5249</wfw:comment><comments>http://devpinoy.org/blogs/jop/archive/2006/09/22/xUnit-Patterns.aspx#comments</comments><description>To all those who are &lt;A href="http://junit.sourceforge.net/doc/testinfected/testing.htm"&gt;test infected&lt;/A&gt;, the &lt;A href="http://xunitpatterns.com"&gt;xUnit Patterns&lt;/A&gt;&amp;nbsp;site catalogues a few wheels that you need not reinvent.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=5249" width="1" height="1"&gt;</description><category domain="http://devpinoy.org/blogs/jop/archive/tags/tdd/default.aspx">tdd</category><category domain="http://devpinoy.org/blogs/jop/archive/tags/links/default.aspx">links</category></item></channel></rss>