Book of Ruby Completed: 425 pages, 300+ Sample Programs, free
sapphiresteel.com
sapphiresteel.com
The only thing that throws me off is the font choice for the code examples. I'm no font-snob, but a monospace font for code just seems much more readable and friendly to programmer readers.
Regardless of the font - very glad to see a great effort like this.
* Unnecessary parentheses abound
* A camelCase preference over snake_case
* And nocase ("myname")
* Calling methods with "::" and "."
* Curly braces instead of do..end for multiline, unchained blocks.
* Curly braces that don't even begin to line up.
* Strangely erratic whitespace (see parentheses)
Don't get me wrong, I love what you can do with Ruby, but this seems like a confusing thing to throw at your readers.Consider the second example in chapter one that includes: name=gets() .. No true Rubyist codes that way. There's an example a couple of pages on that uses if .. then. No-one really uses then either. This is explained in the text, but why show it if it's confusing and rarely used? And why methods like get_name? That's not typical Ruby style either. It'd just be name.
That said, once you get beyond a chapter or two and ignore the quirky stylings, it's not bad and certainly has some value. I know people who had weird music teachers and learned how to play pretty well under them.. but they had to go back and relearn basic breathing and fingering techniques due to the way they were taught.
Obviously a lot of time and effort has gone into developing this book, it would be a shame if the project was undermined by ignoring book design and legibility.
http://www.reddit.com/r/ruby/comments/8diqr/book_of_ruby_com...