From: Bil Kleb Date: 2005-12-22T23:17:49+09:00 Subject: Re: unit tests == ugly code? Joe Van Dyk wrote: > I've found that when I write the tests first, and then write the code, > I'm not very concerned about what the code looks like. When the code > passes the test, I drink a beer and party, then move on to the next > test. You've got the order right, you've just forgotten the third step, and most important step to ensure agility: refactor. The rhythm is Red-Green-Refactor. Regards, -- Bil http://fun3d.larc.nasa.gov