Programming Ruby: The Pragmatic Programmers' Guide, Second Edition

Category: Programming
Author: David Thomas
This Year Stack Overflow 2
This Month Stack Overflow 2


by anonymous   2017-08-20

Simple way do is informal Learning ! ,Think about an application that you want to develop , any simple application start gathering requirements and work on it. If you want learn rails without developing an application it will take long time.

First learn the basics of ruby and start experimenting with rails .

Some of the resources which comes handy in your development :

Programming with Ruby

Agile Web development

Proactive Record :

Most useful Rails plugins, Ruby libraries and Ruby gems

"Develop and Learn is my mantra" .

Hope it is helpful !

by anonymous   2017-08-20

You have to remember that Ruby is an object-oriented language, and a lot of objects in the Standard Library, are built on-top of other objects. In addition, many are extended by modules, which add in new functionality.

So, in the documentation you need to see what things an Object is built-upon. In File's case, it's built on top of IO, which will have a lot of the functionality you'd expect to find in a standard "file" class.

I agree that some of Ruby's documentation is disjointed. I think it's important to get a good book; I recommend the one we refer to as "The Pickaxe Book", AKA "Programming Ruby". There are many other good books, along with some good documentation on line, but this is a great go-to book. The [first edition] is available for free online; It is a bit outdated but still useful.

I'd recommend browsing through some of the other questions similar to this on SO for more suggestions.

I also keep links open to Ruby 1.9's Core and Keyword docs. And, finally, the top of the Ruby-Docs site points to lots of good info though you do have to pay attention to which version the docs are for.

Finally, don't ignore the built-in help: ri at the command-line is a fast source of info on your own machine that should contain documentation for the core and standard library, plus all the gems you have installed. ri open would have told you all the places "open" was defined. ri would have given you a lot of information about that command.

When I started with Ruby, the biggest impediment to learning the language was the documentation. I still find it a lot easier to get info about Perl and Python, and feel like Ruby should use those as examples. That doesn't change my enjoyment of using Ruby though. It's a great language and once getting over the initial hump I like it more and more.

@phoffer recommends in the comment above. I hadn't seen that site but it looks good. I like that it shows what a class inherits from clearly.