4

I'm a C++/C#/PHP/Javascript programmer who's been interested in learning Ruby for a while now. I just graduated and considering this means I no longer have homework to do, I figured now might be a good time.

Just one thing, I don't know where to start. Can someone point me in the direction of some good Ruby tutorials, what editor to use, basically anything that's relevant to a starting Ruby programmer. Perhaps some suggestions for fun projects that would help me learn the language? I'm running Windows, if it matters.

Thanks!

Aistina
  • 12,435
  • 13
  • 69
  • 89
  • 1
    http://stackoverflow.com/questions/402847/learning-ruby-recommended-blogs-to-read http://stackoverflow.com/questions/6806/what-is-the-best-way-to-learn-ruby http://stackoverflow.com/questions/402847/learning-ruby-recommended-blogs-to-read http://stackoverflow.com/questions/125195/i-tried-to-learn-python-and-ruby-but-i-need-a-good-project-with-which-i-can-lear http://stackoverflow.com/questions/55574/learning-ruby-on-rails – ayrnieu Oct 10 '09 at 16:02
  • Ruby on windows: http://stackoverflow.com/questions/172168/ruby-on-rails-editor-for-windows ; there are only seven pages of http://stackoverflow.com/questions/tagged/ruby+windows to look through. – ayrnieu Oct 10 '09 at 16:03

11 Answers11

6

If you want to read a fun introduction to ruby, you have to check out "why's (poignant) guide to Ruby". It is a crazy ruby tutorial that involves cartoon foxes and chunky bacon. It's not at all like your typical programming language book and is a pretty fun read.

Ken Liu
  • 22,503
  • 19
  • 75
  • 98
  • Good to know there are still copies of that around. I was pretty sad when the original vanished. – nilamo Oct 10 '09 at 16:53
  • @nilamo There are a few copies kicking about, it's also published in Joel's "Best software writing 1". – Toby Oct 10 '09 at 17:50
  • why's poignant guide is fantastic. Though a little odd, it continues to be a breath of fresh air among the stuffiness of so many other programming primers. – dpcasady Apr 12 '12 at 17:22
3

Books:


alt text

I found this book excellent. The first part will teach you everything you need to know about Ruby, and the second part is the complete reference of built-in classes and the standard library.

While Agile Development with Rails is a great book, if you don't know Ruby, you'll soon find that you really need a pure Ruby book, and I recommend this one.

I also read this book:

broken image

It's a very good book as well but does not cover Ruby 1.9 and does not contain a reference to the language, so I'd recommend the first book over this one.

Other


If you do get into Rails, I found the API docs found here much more readable than the standard ones.

For development, I've been using Netbeans. It has a very good Ruby and Rails support. I haven't tried other IDEs but it's worked out great so far for me.

Glorfindel
  • 21,988
  • 13
  • 81
  • 109
JRL
  • 76,767
  • 18
  • 98
  • 146
2

My interest in ruby was for rails, like many other engineers.

I started with this book: http://www.pragprog.com/titles/rails3/agile-web-development-with-rails-third-edition

It's awesome. I learned rails and ruby at the same time, basically. Some recommend learning ruby first, but I'm way too impatient for sound advice.

Here's their book on strictly ruby, haven't read it but I imagine it's as good as the others. http://www.pragprog.com/titles/ruby3/programming-ruby-1-9

John Topley
  • 113,588
  • 46
  • 195
  • 237
Ryan Florence
  • 13,361
  • 9
  • 46
  • 63
1

This is the only book you'll need for ruby:

Design Patterns in Ruby

For a beginning book on rails this one is easy to read and teaches most of the fundamentals:

Simply Rails 2

ennuikiller
  • 46,381
  • 14
  • 112
  • 137
0

I found the Exploring Everyday Things with R and Ruby book a good introduction to Ruby. The Ruby code was fun to read since some interesting problems were being solved.

keifer94
  • 136
  • 2
0

In terms of an editor you may want to look at netbeans or the RubyMine editor.

In terms of tutorials, try rubylearning.com. If you are interested in Rails, there are plenty of books and online tutorials that will help get you started.

Stack Overflow is a great resource if you have any questions.

zpesk
  • 4,343
  • 7
  • 39
  • 61
0

I started to learn ruby simply reading this: http://www.ruby-doc.org/docs/ProgrammingRuby/

In addition to ruby language you may watch screencasts about rails: http://railscasts.com/

As an Windows IDE I'm using E-TextEditor with Monaco font.

lks128
  • 936
  • 6
  • 13
0

Well I'm not really a Ruby user and have little experience in Ruby, however I have noticed that the Ruby site does contain allot of excellent looking documentation including tutorials for getting started, tutorials for moving from another language to Ruby as well as a whole bunch of other great stuff. I would suggest having a look as it will offer a reasonable taste for the basics at the very least http://www.ruby-lang.org/en/documentation/

Toby
  • 214
  • 2
  • 6
0

Good suggestions here, and I also highly recommend The Ruby Programming Language

Kevin Peterson
  • 7,189
  • 5
  • 36
  • 43
0

When I had to figure something out in Ruby, Ruby in twenty minutes was pretty useful. The best thing about it was that it really does only take about twenty minutes.

0

As you, I had a background in C++/C# and wanted to give Ruby on Rails a shot. Similar to some of the other responses you've received I found the initial best source in getting up with Ruby on Rails, just the framework, to be Agile Web Development with Rails. For the Ruby language I found the pick axe book to be fantastic - Programming Ruby 1.9. Both are available from Pragmatic Programmer.

Other great sources of Ruby and Ruby on Rails screencasts are:

As always, studying the source code produced by the gurus is a great resourcee!

You may also wish to consider looking for Ruby/Ruby on Rails blogs - perhaps in a different question on this site.

BigBrother
  • 1,100
  • 1
  • 9
  • 17