Ruby books

DiscussiePurely Programmers

Sluit je aan bij LibraryThing om te posten.

Ruby books

Dit onderwerp is gemarkeerd als "slapend"—het laatste bericht is van meer dan 90 dagen geleden. Je kan het activeren door een een bericht toe te voegen.

1TerrapinJetta
mrt 7, 2007, 11:37 am

So I saw this nifty language called Ruby and thought 'I want some of that'. Why's Poignant guide to ruby is awesome, do any of you think I need a book in addition to it? I get by in PHP, Java, Processing and Javascript, but I want a really in depth introduction to ruby before I go onto using the rails framework. Any advice appreciated!

2andyl
mrt 7, 2007, 11:51 am

Ruby is a pretty cool language.

For a start you may want to look at http://www.rubycentral.com/book/index.html which is the first edition of the Programming Ruby book. Obviously Ruby has changed since then (and there is a second edition of that book you can buy) but that and the library documentation should be enough to get you started.

3JohnMcGrath
mrt 7, 2007, 2:15 pm

I *lerve* Ruby. Deeply object-oriented, clean syntax, metaprogramming. And if you do web applications, Rail is a beautiful framework -- I used Struts and Hibernate for years, which combined are more or less the Java equivalent of Rails, and Rails is dramatically more pleasant to use.

The link in Msg. 2 is going to a strangely-listed copy, try this one. Programming Ruby is an excellent book; make sure to get the 2nd edition. I do find it useful -- Why's guide is a work or art, but the book is well done and a handy reference (in conjunction with the online API).

4andyl
mrt 7, 2007, 5:40 pm

Well I only used a touchstone John (I didn't go and check the actual work) and to be fair Andrew Hunt is credited on the cover.

5TerrapinJetta
mrt 9, 2007, 4:37 am

Cheers guys, I'm checking out that book now. A friend of mine is telling me I should be learning python instead, any of you have experience with that language? Is it + turbogears/whatever framework better than ruby on rails for web applications? That's why I'm getting into it.

6andyl
mrt 9, 2007, 5:10 am

Yeah I've written in python as well as ruby (and loads of other languages as well). I haven't looked at the python web frameworks although I have read that Django is preferable to TurboGears.

Both python and ruby are more than capable languages. I think ruby is a tad more elegant and there are some things for which ruby is clearly a better langauge to use.

I have played around with Rails and it seems reasonable enough to get something up and running quickly - although it will be a different way of working if you are used to using PHP to create simple web applications.

7JohnMcGrath
mrt 9, 2007, 10:51 am

Sorry andyl, didn't mean to imply anything with the alt-link.

I've written a little Python too (though a lot more Ruby), and agree with all you say, it's nice. I've heard people praise Django -- including David Heinemeier Hansson, the creator Rails -- but I get the feeling that Rails has more momentum. I've built two web sites with Rails (Squirl and Wordie), and love it. It's pretty dramatically different from PHP, as andyl says, though TerrapinJetta, if you've written some Java you might love Ruby right off the bat. It's more elegant, with less overhead, and some LISP-like gems (ie, metaprogramming) thrown in. It's slower, but that rarely matters for web apps.

8crisafugate
mei 28, 2013, 4:47 pm

Get the Pick Ax (Programming Ruby). Also, I would look at Ruby Koans at rubykoans.com to get a really good feel for the language.