codepancake

your daily code for breakfast

Keep Calm and Read these 5 Ruby Books

A couple of weeks ago, I wrote a blog post on 5 Rails books. Well, if you’d like to learn more Rails, it’s also quite important to have some knowledge of programming in Ruby. Therefore I’ll share another list with 5 ‘must read ‘Ruby Books. Enjoy!

* Beginning Ruby: From Novice to Professional I really recommend this book to every one of you who wants to learn Ruby from the ground up. Beginning Ruby is written by Peter Cooper, a well-known figure in the Ruby community. Because of Cooper’s ability to teach and explain Ruby to newcomers, I think this book is definitely one of the best resources to get you started. Besides teaching Rubyd, Cooper will lead you through installing Ruby, RubyGems, how to use a command line and IDE or text editor.

* The Well-Grounded Rubyist This one takes you from ‘interested novice’ to ‘proficient practitioner’. It’s basically a tutorial that begins with the first step to get your Ruby program up and running and will then proceed to get into the deep inner workings of Ruby. There are a lot of examples in this book, they’re easy to follow and will give you more confidence in programming Ruby.

* Learn Ruby the Hard Way
Learn Code the Hard Way is offered as free PDFs. You can learn Python, Ruby, C, SQL or Regex ‘the hard way’. These books are written by Zed Shaw and will give you more insight in how to get started with more tools than only your browser. You will learn how to use the terminal and the text editor. And most important: Read the examples. Type the code precisely (no copying and pasting!). Fix your mistakes. Watch the program run and learn from it. This book is really about learning by doing.

* Why’s (poignant) Guide to Ruby. Actually, this one doesn’t really belongs here. This illustrated Why’s Guide to Ruby is more an ‘adventure’ book, but it’s definitely worth reading. If you expect a clean introduction to Ruby then this is not the book for you. It’s straight-forward and easy to read but contains many cartoons and completely unrelated sidebars. I really had fun reading this book, so just read it and enjoy!

* Learn to Program
This is one of my favourite books. It’s very well written and the explanations are very clear. Learn to Program is a great introduction to programming for people who have never written a line of code in their lives. It starts out simple, and eases the new programmer into the concepts of automating tasks on a computer via the Ruby language.

BONUS:

* Practical Object-Oriented Design in Ruby: An Agile Primer If you’re already familiar with Ruby, I really can recommend you to read POODR. The small, focused examples really help drive home the concepts. It’s quick and easy read, and a good choice for Rails programmers who haven’t done much programming outside of the framework. Metz introduces the reader to a handful of common object-oriented techniques framed with the idioms and best practices of Ruby.