Jump to ratings and reviews
Rate this book

Learn Ruby the Hard Way

Rate this book
Do you really want to learn programming but have no skill? Are you a system administrator who wants to learn Puppet or Chef? Are you a designer who wants to build your own websites? Are you a Ruby on Rails programmer who's ashamed that you don't really know Ruby? Then you should read this book. It assumes absolutely no prior programming knowledge and will guide you carefully and slowly through the learning process.

Learn Ruby The Hard Way is a translation of the original "Learn Python The Hard Way" to teaching Ruby, with the translation done by Rob Sobers. "Learn Python The Hard Way" has taught hundreds of thousands worldwide how to code in Python, and this book uses the same proven method for Ruby. When you are done with this book you will have the skill to move on to other books about Ruby and be ready to understand them.

173 pages, ebook

First published November 12, 2011

55 people are currently reading
194 people want to read

About the author

Zed A. Shaw

19 books59 followers

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
47 (28%)
4 stars
49 (30%)
3 stars
45 (27%)
2 stars
17 (10%)
1 star
5 (3%)
Displaying 1 - 25 of 25 reviews
Profile Image for Katherine.
149 reviews
October 8, 2013
There are very ugly examples given. With poor fundamentals, a beginner can be misled that those are preferred ways. I discourage anyone from reading this. It's the hard way and ugly way too.
Profile Image for Aaron Wolfson.
97 reviews41 followers
July 18, 2015
Dude! There are plenty of resources for learning to code out there, and learning Ruby in particular, that don't involve the instructor constantly belittling you. Look elsewhere.
Profile Image for Cynthia.
5 reviews1 follower
September 21, 2024
This Ruby tutorial is great for those who are new to programming. True to its title, it is difficult yet effective. It teaches the very basics of programming, which is essentially trial and error. I suggest this book for anyone looking to learn how to program outside of a browser.

Codecademy is a good resource. It is a great way to get acclimated to programming syntax. However, eventually, the student will want to take the "training wheels off" and work in an actual web dev environment.

Learning Ruby the Hard Way would be a logical step if the student is interested in the next level. It will also teach the student the very basics of setting up a dev environment.
Profile Image for Sean D.
18 reviews
January 5, 2023
I found this book a decent introduction to Ruby. As someone with a very experienced programming background but not fluent in Ruby, I was about to read through and complete the exercises in about ~6-7 hours. "Hard" is definitely subjective; at times, it felt more like a self-help book one would read for motivation and not technical literature. For anyone who has any coding experience (in any language), I would recommend "The Well-Grounded Rubyist" instead. No programming experience? Read on.

Additionally, I personally enjoy the author's writing style. The text was engaging and humorous. I would like to more of that in technical literature.
1 review
June 29, 2017
A quote from the book: 'Avoid something called "meta-programming" at all costs, as it is too complex to be useful reliably.' This is an unforgivable statement. So much so that it taints the entire book, at least IMO. ActiveRecord, the default ORM behind Rails, leverages meta-programming. Is Rails not reliably useful? Understanding meta-programming will make you a better Rubyist. It is not something to be feared or avoided.
Profile Image for Cees Timmerman.
81 reviews38 followers
September 21, 2017
Exercise is needed to get into shape, but as an experienced programmer i already like the shape i'm in.

Ruby's many and thus sometimes inconsistent styles irk me, as do sigils, but this book did show me that Ruby classes are much easier than Python ones, and had a nice list of explained symbols in Exercise 37. It's also refreshingly succinct.
Profile Image for Mohammed Ridwanul Islam.
30 reviews7 followers
October 18, 2016
If you are a programmer already (I come from a heavy Java background) this book will decode some of the magic of functional programming and Ruby.
But it is definitely not "the hard way" lol. You can finish the book in a day and a half. I recommend just giving it a quick scan.
Profile Image for Ravi Sinha.
314 reviews11 followers
June 26, 2012
When I read it the author still seems to have been working on completing it; half the chapters were missing; but it's still a great read and opens up possibilities to a lot of further reading. I like the style of the Learn Code the Hard Way books - they are direct and straightforward, with less talk and small chunks of code, followed by extra credit/ homework - and sometimes, that's just the kind of book you need.
Profile Image for Eric Brooke.
111 reviews18 followers
July 18, 2015
A most excellent introduction to Ruby. Teaches the real basics in a way that you are not likely to forget. It assumes nothing, i.e. you have never coded or setup you computer or anything. It layers the knowledge and experience layer by layer. It teaches Object Orientated Programming theory and how it applies to Ruby as well as an extra section on how to survive in Command Line (Unix BASH). It gives different instructions for users of Macs, Linux and Windows.
Profile Image for Jared Silver.
11 reviews4 followers
May 19, 2016
Really solid introduction to Ruby, and to programming in general. I feel that Zed's emphasis on meta-learning (that is, how to think about learning how to code) makes the book far more effective than many others that focus merely on the code itself. Highly recommended for beginners and for those new to Ruby.
Profile Image for Ahmed Alkatheeri.
48 reviews7 followers
August 4, 2013
It's very good book for any one want to know how to program, and it depends on practice and giving you more exercises .. I like this way because it's useful and focus on doing things more than save things!
Profile Image for ΔRT.
62 reviews36 followers
January 9, 2016
PRO's:
Good book. Author try to use proactive approach. Good exercises.
Learning by doing is a motto of this book. I really like it.

CON's: #very subjective though
Rspec is not covered (only Test::Unit)
Sinatra, not RoR.
Too much stuff around one quite controversial game.
12 reviews
January 14, 2016
A really good introduction to programming that happens to use Ruby for the language.

Not so useful to polyglot developers looking to pick up Ruby. Also tends to veer towards Python idioms rather than those of Ruby at times.

Still, a great book for those who haven't programmed before.
1 review
May 18, 2014
Great approach to teaching a language from scratch but also worthwhile to the seasoned programmer to go through the motions as a refresher. The whole series is fantastic.
Profile Image for Hanan A.S..
190 reviews12 followers
October 28, 2014
An incredible book. I am glad I came across it on my quest to teach myself Ruby.
Recommended to all ruby/rails beginners.
17 reviews
January 25, 2015
This book is great for beginner programmers and experienced programmers that want to pick up the Ruby programming language. I highly recommend it.
4 reviews
June 8, 2017
Nice book for beginner into computer programming world.
Profile Image for Julissa Dantes-castillo.
389 reviews26 followers
June 23, 2016
I think this is a great book, includes basic language syntax, humor, and 2 projects, that last thing makes you want to learn even more and discover things before you get to that part of the book.
5 reviews
August 9, 2016
This book would be for the very beginner if you started learning to program with Ruby language.
Displaying 1 - 25 of 25 reviews

Can't find what you're looking for?

Get help and learn more about the design.