Re:'Learn Ruby on Rails' is free today
by DanielKehoe on Saturday November 30, 2013 @12:23AM
(#6822394)
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
* Noel Rappin, "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
Other resources? How did you learn TDD for Rails?
I 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.
Re:'Learn Ruby on Rails' is free today
by rartichoke on Saturday November 30, 2013 @08:59AM
(#6823168)
The 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.
Will you consider writing another book in the same spirit as this one (for beginners & kept up-to-date) for rails with TDD?