newcomer to Ruby

J

John Kearney

[Note: parts of this message were removed to make it a legal post.]

I am a newcomer to programming and wish to explore ruby. Can anyone recomend
a book for this purpose.
 
7

7stud --

John said:
I am a newcomer to programming and wish to explore ruby. Can anyone
recomend
a book for this purpose.

I think you have to buy "the pickaxe" for the language reference, which
is about 1/3 of the book. For a good tutorial, I would recommend
"Beginning Ruby: From Novice to Professional(2nd ed)".
 
M

Mason Kelsey

[Note: parts of this message were removed to make it a legal post.]

In spite of its flaws, I also recommend "Beginning Ruby". I have a copy and
am using it to learn Ruby after wandering off in left field with "why the
lucky stiff"s online introduction that was entertaining but left a lot of
explaining missing. Walk through your code, guys, as you are explaining how
things work!!!

There are several weaknesses to Peter Cooper's book. The book has a slight
bias for the UNIX environment. I work on Windows XP, so that was an issue
for me. The $stdin.gets is not explained. Because of the enormous number
of topics, you get a feeling of being rushed and that a lot is being left
out because of a need to scope in. I felt that in Chapter 12 that Peter
could have tied things together better than he did. What calls what and how
his Eliza look alike all hangs together. Important details are left out,
such as what is happening in "class TestWordPlay < Test::Unit::TestCase" on
p. 316. Yes, he mentions that you are establishing a hierarchy between a
new class TestWordPlay" and Ruby system classes Test::Unit, (to use the
assist methods), and TestCase in an earlier part of the book, but it would
be nice to have reminded the student of that. It would have been nice to
have some reference to "regulare expressions" outside of the book. If you
go to Wikipedia, http://en.wikipedia.org/wiki/Regular_expression, you find
code characters such as the "^" that mean something entirely different than
how it is used in Ruby. Here is a web site to test any Ruby regular
expression you write, http://www.rubyxp.com/ I felt that the chapter 8 on
Error Handling had poor examples. And I wish that authors could avoid "foo"
in every book they write as it is never clear to a beginner if that means
something special and the joke is dead. Catching and throwing are not
clearly explained on page 187. Too rushed. The author needs to walk the
reader through each line of code and explain what is happening, instruction
by instruction. The book talks about escapting out of a block but the
example is not IN a block with code outside of it to show the logic flow
properly. Would be nice to have a chapter on queues, heaps, stacks, and
dequeues. Maybe applied to searching a binary tree. While Part 3 is
interesting, I will be picking up a separate book on Ruby on Rails to learn
that. So 62 pages could have been saved there to make room for that
essential but missing chapter on Ruby data structures. Chapter 15 on
Networking, Sockets, and Daemons....scream!...overload! Put Chapters 13
through 16 in a separate book. And improve the index.

Today I also put in an oder for Algorithms in a Nutshell by George Heineman,
and Programming Ruby 1.9: The Pragmatic Programmers' Guide (Facets of Ruby)
by Dave Thomas, which is the latest edition of "the pickaxe book".

Learning a new language is always work. Even after my 127th language it is
work. (Actually I lost count after I went over 100 back in the 1980s.)

No Sam
 
7

7stud --

Chris said:
For learning the Ruby language I'd have to go with David A. Black's "The
Well-Grounded Rubyist".


I think that even if you are an experienced programmer trying to learn
ruby, "The Well Grounded Rubyist" is a stretch as a beginning book. And
if you are new to programming altogether, I don't think it would be
appropriate.
 
S

spiralofhope

D

David A. Black

Hi --

I think that even if you are an experienced programmer trying to learn
ruby, "The Well Grounded Rubyist" is a stretch as a beginning book.

I kind of hope not -- that's the main target audience :) The book
starts at the beginning; no Ruby experience assumed or required.


David

--
David A. Black / Ruby Power and Light, LLC / http://www.rubypal.com
Ruby/Rails training, mentoring, consulting, code-review
Latest book: The Well-Grounded Rubyist (http://www.manning.com/black2)

September Ruby training in NJ has been POSTPONED. Details to follow.
 
J

Jörg Hagmann

I'm not a programmer, and Ruby is my first (and only) programming
language. I bought 4 books, all of them good in their way, and managed
to write the (simple) programmes I needed. But I didn't really
understand what I was doing; sometimes it worked, sometimes it didn't
and I had to go by trial and error (and copying from sources).

This changed after I read "The Well Grounded Rubyist". It is quite
simply superb, and what it achieves is contained in its title. Thanks,
David.

Jörg

--
Prof. Jörg Hagmann-Zanolari MD
University of Basel
Department of Biomedicine
Institute of Biochemistry and Genetics
Mattenstrasse 28
CH-4058 Basel
Switzerland
Phone +41 (0)61 267 3565
 
G

Greg Donald

I think that even if you are an experienced programmer trying to learn
ruby, "The Well Grounded Rubyist" is a stretch as a beginning book. =A0An= d
if you are new to programming altogether, I don't think it would be
appropriate.

I disagree with both statements. It seems more than appropriate for beginn=
ers.


--=20
Greg Donald
http://destiney.com/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Ruby Newcomer 2
Newcomer 4
Class extension 0
numerical ruby? 7
How to host data visualization beginner friendly? 1
How to use Ruby like shell script? 19
Listen to streaming radio with ruby? 3
Improve ruby skill 2

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,241
Members
46,831
Latest member
RusselWill

Latest Threads

Top