I wasn't trying to say that good design was easy. I think good design is hard, but I think it is even harder to solve a problem at the wrong level. Solving design problems with testing techniques or tools is more work and creates less value than taking a step back and solving the underlying design problem.
For example, Ken Auer invented Enabler objects that would be attached to widgets to determine whether they were enabled or not. Without the Enabler, you have to open the window and simulate interaction to see whether the right widgets are enabled and disabled. By turning the idea of enablement into an object, you can simply and effectively unit test enablement without the complexity, fragility, and expense of opening a window and simulating interaction. Kent Beck Three Rivers Institute > -----Original Message----- > From: Dakshinamurthy Karra [mailto:[EMAIL PROTECTED] > Sent: Friday, November 05, 2004 7:09 AM > To: [EMAIL PROTECTED] > Subject: Re: [XP] Why NOT XP? > > > > On Thu, 4 Nov 2004 09:48:04 -0800, Kent Beck > <[EMAIL PROTECTED]> wrote: > > My conclusion from this experiment is that testing GUI > logic is mostly > > a design problem, slicing the GUI logic in such a way that it is > > testable. > Can you also say that this design goal can be achieved by any > developer? Don't experience, knowledge etc. play a part in > this? Is it possible to provide step-by-step guide to achieve > this goal? In case this is not achievable by an average > developer - what other avenues are available for testing GUI? > What happens in the end if the developer is still > uncomfortable with code that does not cover GUI logic? (I > presume even in effective slicing of GUI logic we will still > have few loops and if-then-else in GUI code). To Post a message, send it to: [EMAIL PROTECTED] To Unsubscribe, send a blank message to: [EMAIL PROTECTED] ad-free courtesy of objectmentor.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/extremeprogramming/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
