3 ms·
Daniel, how far will you go with TDD on this book? What resource will you recommend to continue learning TDD after the intro in this book? Will you consider wr
by hery 13y ago
Daniel, how far will you go with TDD on this book? What resource will you recommend to continue learning TDD after the intro in this book?
Will you consider writing another book in the same spirit as this one (for beginners & kept up-to-date) for rails with TDD?
- DanielKehoe 13y agoTDD is one of the big issues in the pedagogy of teaching Rails. Teach it from the start (Hartl)? Ignore it (most lightweight intros)? Or find a way to introduce it without intimidating beginners? My approach (in a forthcoming chapter) is to encourage testing literacy, that is, to show beginners how to read test code and run tests, so they will be prepared for further study. Michael Hartl's book is good to read after "Learn Ruby on Rails." I also recommend these three books (the first is the newest): * Aaron Sumner, "Everyday Rails Testing with RSpec" https://leanpub.com/everydayrailsrspec https://leanpub.com/everydayrailsrspec * Noel Rappin, "Rails Test Prescriptions" http://pragprog.com/book/nrtest/rails-test-prescriptions http://pragprog.com/book/nrtest/rails-test-prescriptions * Chelimsky and friends, "The RSpec Book" http://pragprog.com/book/achbd/the-rspec-book http://pragprog.com/book/achbd/the-rspec-book Other resources? How did you learn TDD for Rails?
- hery 13y agoI didn't :) I use Python/Django and thinking of learning Rails, preferably with TDD. Thanks for the list, I'm sure it will be useful! PS. I backed your campaign.
- rartichoke 13y agoThe problem with teaching TDD is there are too many opinions. If someone wants to use assertion based testing and fixtures then learning rspec and factory girl in depth is not going to appeal to them. A lot of the useful information on testing comes from figuring out how to do certain things that are very specific to the testing lib you use.