Ruby books

DiskuteraPurely Programmers

Bara medlemmar i LibraryThing kan skriva.

Ruby books

Denna diskussion är för närvarande "vilande"—det sista inlägget är mer än 90 dagar gammalt. Du kan återstarta det genom att svara på inlägget.

1TerrapinJetta
mar 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
mar 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
mar 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
mar 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
mar 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
mar 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
mar 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
maj 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.