From: James Gray Date: 2008-08-04T23:14:10+09:00 Subject: Re: unit testing advice On Aug 4, 2008, at 9:07 AM, Dave Bass wrote: > I like to write my code first, tests second. Otherwise how do I know > what I'm supposed to be testing? (There's no spec, I make things up > as I > go along. This is a hobby, not work.) I actually prefer to do the tests first. This let's me think through a question like, "How do I want to use this code?" I find that helps prevent me from designing awful interfaces. At times though, I will write some code and then cover it in tests. I'm not a super dogmatic person. James Edward Gray II