3 ms·
TDD 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
by DanielKehoe 13y ago
TDD 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.