glenn wrote:
Bill,
I'm with Tom here. Given the ease of getting migrations working there
is no reason not to cut over immediately. Tom also justified it with
the fact that both will ultimately prove to be a productivity boost in
the longer term and so it's a false economy to delay any longer.
You'll no doubt appreciate his opinion more once you've actually got it
working.
I'd like to support Tom's view too. Out of the two things you asked about - migrations and automated testing - moving to migrations is a relatively small change to your development process, and there's absolutely no reason not to give it a try immediately.
On the testing front, there are two steps you need to consider, and if you take them the impact on your development process will be profound:
1. Learn the techniques of unit, functional and integration testing with Rails.
2. Adopt test-driven development. This is a radical change, and I'm not going to attempt to explain it in an email now (4:45 am UK time). This article
Test First
is a starting point, and this interview
artima - Test-Driven Development
gives more feeling for the impact on the development process. Kent Beck's book "Test Driven Development: By Example"
http://www.amazon.com/Test-Driven-Development-Addison-Wesley-Signature/dp/0321146530
is enlightening - I've never met Kent Beck, but reading the book gave me the jaw-dropping feeling that Martin Fowler refers to in the interview referenced above:
<quote>
I recommend you sit down with somebody whose done test-driven development, so that you do it pairing with somebody who knows that style. I think you'd get a much better appreciation of how it works that way, because it is so very counter-intuitive. Unfortunately we won't have time to do something like that, but I'd love to do that with you. I can almost guarantee that you'll say, "What we're going to take that small of a step? It's not worth going such a small step." And I'll say, "Just trust me. Do these tiny steps." I've seen it so many times. I remember watching someone pair program with Kent for the first time. This guy had read up on XP and was pretty much in favor of it. He was very positive about XP already. There were times when his jaw was dropping at the tiny little moves Kent was making. He came out of it realizing that there is a whole style to test-driven development that he didn't expect.
</quote>
Have fun!
Justin Forder