Is there a "Code Book" for Ruby?

I started reading the book “Code Complete”, 2nd edition, but stopped reading when I noticed that most of the solutions were easily resolved in Ruby with Ruby idioms. Is there a similar book for Ruby?

Here is the version I started reading:

http://www.amazon.com/Code-Complete-Practical-Handbook-Construction/dp/0735619670

+6
ruby ruby-on-rails
source share
3 answers

Select this book and start from where you left off. Since someone who has read the first edition and is now writing Ruby for Life, I can safely say that the Code Complete lessons are universal. The wisdom in this book about good code construction is quality naming, decoupling, how to structure a function, etc. - will stand on any programmer in good condition. I still treat my ears with ears regularly.

As for books on practices that are more specific to Ruby: first, every programmer should have a copy of Ruby Way, Second Edition, Hal Fulton on his desk. Secondly, before I read it, I heard good things about " Ruby Best Practices ".

+23
source share

For such an old programming language (well, maybe not “Lisp” is old, but Ruby is older than Java) and a community that fanatically evaluates the quality, style and beauty of code, the Ruby book market is surprisingly light on “higher-level” books .

There are several reasons for this: many rubists are already seasoned with Smalltalk or Lisp programmers when they take Ruby, so they don’t need these books. Both Ruby and Smalltalk are similar enough that you can just read the Smalltalk book. (For example, you can pretty much read Stéphane Ducasse's list of free Smalltalk books . The same goes for Perl.

Until recently, a higher-level Ruby book was mainly the Kent Beck Smalltalk Best Practice Patterns . (There is a newer version of this book called Implementation Templates , which uses Java instead of Smalltalk, however, since Kent's Java style is very Smalltalk-ish, it is essentially SBPP, 2nd ed.). However, since then several books of a higher level have been released or are in work:

+3
source share

As stated in the comment above, I'm not sure what I should recommend.

However, you can take a look at the Pragmatic Series with books like Agile Developer Practice or Pragmatic Programmer , if you don't already know them. At the very least, they drop parts of C , but if you don't go into explicit Ruby stuff, they will use languages ​​like C # to demonstrate.

0
source share

All Articles