Wednesday, March 05, 2003

Peter Provost has a good article on test driven development in .NET. This is probably the best NUnit-specific tutorial I've seen on how to do unit testing. One thing I noticed about Peter's BankAccount example is that since he's representing balances as a double, his tests may never pass - such is life with testing floating point numbers for equality. OTOH, with unit tests, you might find that out earlier than without them.

I recently had to add a method (message?) to a web service and I took a test driven approach, though somewhat modified. In my case, I defined the WSDL interface, generated my server code, and then stub it out enough to compile, and then built my tests. One thing that I took from the experience is that it requires a great deal of discipline to break old habits (not my strength), that writing good tests is hard, and that using a Mock Object strategy really adds a lot of development overhead. But then, so does fixing bugs.

5:05:52 PM  permalink Click here to send an email to the editor of this weblog. 

Recent builds of MailEdit have cleared my problems from yesterday.  I can already tell that I'm going to enjoy using this tool!  It looks like Roland Tanglao shares my sentiment.

7:33:27 AM  permalink Click here to send an email to the editor of this weblog. 
The last remaining airline owned GDS is being bought by private equity companies. This has fairly important implications for the travel industry, in that the US DOT is currently reviewing the rules governing the activities of GDS companies. These rules were put in place in the 1980's to counter monopolistic practices by the airlines and the GDSes are lobbying to have those restrictions removed, since the other 3 big players in this industry have been independent for a few years now, which has left those GDSes (Sabre, Galileo, and Amadeus) in a bind: they have the airlines actively trying to circumvent the GDS channel (via Orbitz and their own distribution) but they're still treated by the US Goverment as if they were being run by airlines.
7:05:50 AM  permalink Click here to send an email to the editor of this weblog. 


Stories
DateTitle
1/23/2003 Why XML?
8/13/2002 Resolution for IE and Windows problems
8/10/2002 Supporting VS.NET and NAnt
5/11/2002 When do you stop unit testing?
Contact
jabber: weakliem
YM: gweakliem
MSN: gweakliem@pcisys.net
email: Click here to send an email to the editor of this weblog.
Subscribe to "Gordon Weakliem's Weblog" in Radio UserLand.
Click to see the XML version of this web page.