Sunday, April 04, 2004

TDD in the real world... for real?

I like Test Driven Development (TDD). It makes sense to me at a conceptual level, it feels right, and it basically formalizes a number of practices I have had for years (but without the discipline to necessarily do it the same way all the time). I think it leads to better software both through finding defects earlier and because it changes the way you approach coding in a good way that makes you think about the client API very closely up front (because your tests are client code).

The one thing I don't like or really just haven't gotten my arms around yet is how to really apply it comprehensively across all the kinds of development I do. For business objects that encapsulate some data and expose operations on that data, TDD is perfect and easy to understand. For things like asynchronous, event-driven services and interactive UI code, I still have a hard time figuring out how to apply TDD.

So when I finally got around to reading the latest MSDN, I was looking forward to the article in there on TDD. I found the article to be well written and thought it did a great job explaining the basics and how to put together TDD test fixtures in .NET and work with NUnit. I was a little dissatisfied with the finish though.

As I read, I started salivating as I got to the section titled “Using TDD in the Real World”. Cool, someone is finally going to go beyond talking about money classes as demonstrate using TDD for something hard... or maybe not. Then it started talking about addressing GUI testing, even better... or maybe not. In the end, the “real world” scenario ended up being a combo box driven by a simple data container class for countries, and the only thing that TDD was demonstrated against was the country list class. Hardly a real world scenario, and how you might test the combo box that uses it was quickly slipped around.

Does anyone out there have any good resource links to using TDD for GUI and/or asynchronous/event-driven scenarios? That is the one area I still need a better clue, but I can't seem to find any good examples or discussion of them.



Architecture | Languages and Tools

Sunday, April 04, 2004 12:09:48 AM (GMT Standard Time, UTC+00:00)
Comments [1]  |  Related posts:
Silverlight - not just pretty graphics - Cross platform .NET Framework!
Great guidance on using Team Foundation Server for your projects
ClickOnce Community Resource Kit has found a new home
Hands on WPF - dnrTV - Part 1
NOVA / DC Area Code Camp
DevConnections Vegas Slides and Demos
Tracked by:
"online casinos" (online casinos) [Trackback]
"casino online" (casino online) [Trackback]
"texas holdem strategies" (texas holdem strategies) [Trackback]
"blackjack" (blackjack) [Trackback]
"free online poker advertising" (free online poker advertising) [Trackback]
"online poker tournament money" (online poker tournament money) [Trackback]
"viagra" (viagra) [Trackback]
"casino games" (casino games) [Trackback]
"internet casino" (internet casino) [Trackback]
"texas holdem hand odds" (texas holdem hand odds) [Trackback]
"instant cash no deposit casino code" (instant cash no deposit casino code) [Trackback]
"riviera hotel and casino" (riviera hotel and casino) [Trackback]
"ruleta europea portal web" (ruleta europea portal web) [Trackback]
"cheating the slot machines to win-pay off" (cheating the slot machines to win-p... [Trackback]
"online pharmacy usa" (online pharmacy usa) [Trackback]
"ganancias casinos pagina internet" (ganancias casinos pagina internet) [Trackback]
"play game roulette" (play game roulette) [Trackback]
"baccarat casino game" (baccarat casino game) [Trackback]
"as online phentermine prescription purchased same" (as online phentermine presc... [Trackback]
"casino portales" (casino portales) [Trackback]
"casino gamble" (casino gamble) [Trackback]
"black jack spielautomat" (black jack spielautomat) [Trackback]
"black jack play poker" (black jack play poker) [Trackback]
"tenuate diet pills" (tenuate diet pills) [Trackback]
"propecia online prescription" (propecia online prescription) [Trackback]
"online pharmacy forums" (online pharmacy forums) [Trackback]
"baccarat casinoclub.atspace.com link online" (baccarat casinoclub.atspace.com l... [Trackback]
"roche tamiflu" (roche tamiflu) [Trackback]
"tamiflu without prescription" (tamiflu without prescription) [Trackback]
"ganar dinero real portal" (ganar dinero real portal) [Trackback]
"juegos para bajar gratis" (juegos para bajar gratis) [Trackback]
"loans" (loans) [Trackback]
"cialis drug minuteviagra.com online viagra" (cialis drug minuteviagra.com onlin... [Trackback]
"congratulations jackpot" (congratulations jackpot) [Trackback]
"buy cheap link online.jixx.de phentermine" (buy cheap link online.jixx.de phent... [Trackback]
"tested forex trading system" (tested forex trading system) [Trackback]
"payday advance" (payday advance) [Trackback]
"1602" (1602) [Trackback]
"internet gaming" (internet gaming) [Trackback]
"a game like backgammon that is played with 3 players" (a game like backgammon t... [Trackback]
"phentermine" (phentermine) [Trackback]
"ambien" (ambien) [Trackback]
"hydrocodone" (hydrocodone) [Trackback]
"buy soma online" (buy soma online) [Trackback]
"american baccarat betting casino" (american baccarat betting casino) [Trackback]
"auto fellatio" (auto fellatio) [Trackback]
"paxil" (paxil) [Trackback]
"buying propecia" (buying propecia) [Trackback]





















Sign In
Copyright © 2006-2007 Brian Noyes. All rights reserved.
designed by NUKEATION STUDIOS