News for hackers. Stuff that matters.
Re:Ask HN: I want to learn Ruby by ryanfitz on Thursday September 24, 2009 @06:14PM (#842346)
If you're already comfortable with another object oriented language then picking up ruby is pretty straight forward, but I'll tell you what worked the best for me. I started out reading some of the above mentioned books, but when it came to sitting down and programming I still felt a bit lost. So I simple started with writing tests for very very simple things. Like test_print_hello_ten_times to teach me how to create an array and loop over it. I basically test drove how to work with the basic building blocks of the language and literally in an hour or two I felt very comfortable working in ruby.

Now I come from a background of doing TDD in java, so your milage my vary, but this was a very natural and easy approach to learning the language.

Re:Ask HN: I want to learn Ruby by apotheon on Friday September 25, 2009 @04:20AM (#843122)
Testing is one reason I think Everyday Scripting with Ruby is such a great book: while it's for someone with a casual acquaintance with programming, it still manages to teach TDD with Ruby in a clear, helpful manner that actually helps the reader internalize it such that the knowledge doesn't just evaporate when the book is done.