tag:blogger.com,1999:blog-5819005.post5334769765556801117..comments2024-03-16T02:17:55.433-07:00Comments on Programming and politics: TDD Gone WrongAnonymoushttp://www.blogger.com/profile/08698131967747444207noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-5819005.post-78820197319234275462008-03-14T15:30:00.000-07:002008-03-14T15:30:00.000-07:00So that's settled then. I'm glad I asked ;-).So that's settled then. I'm glad I asked ;-).Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5819005.post-58821531816329087732008-03-11T15:08:00.000-07:002008-03-11T15:08:00.000-07:00You are right Rob, I misunderstood the original po...You are right Rob, I misunderstood the original post. I thought the controller code was server code, not client code. I took a look again and realized my mistake. <BR/><BR/>So if you moved logic from client to server just so you can test it more easily, I would still argue that is a big mistake. However, the "guy at Spring" a.k.a. Iwein Fuld did not make that mistake. <BR/><BR/>Your blog also does a good job of explaining the concept. Thanks for correcting me.Anonymoushttps://www.blogger.com/profile/08698131967747444207noreply@blogger.comtag:blogger.com,1999:blog-5819005.post-72769361883767359552008-03-11T14:05:00.000-07:002008-03-11T14:05:00.000-07:00I find it hard to understand what point you're try...I find it hard to understand what point you're trying to make here. This <I>"guy at Spring"</I> is not arguing that you <I>"should dumb down your view code"</I>, but rather in favor of moving the logic that you would like to test to a Controller component, where it can be tested without a need to instantiate GWT widgets. <BR/><BR/>Perhaps you're confusing <I>view code</I> with <B>UI code</B>, instead of <B>View code</B> as in Model -View-Controller.<BR/><BR/>In case you have any doubts, you might want to read the <A HREF="http://robvanmaris.jteam.nl/2008/03/09/test-driven-development-for-gwt-ui-code/" REL="nofollow">blog post</A> I wrote about the same subject.Anonymousnoreply@blogger.com