Ruby tutorial

Hi Friends,

Where can I get ruby tutorials that explains OO concepts (I’ve read the axe
and am still reading the rubyway, but still cannot find samples).

I’d like something that illustrates a hierarchy like:

Town is composed of houses and streets:
House is composed of:
Windows
has design
has kind
location
has proc open
has proc close
Doors
location
design
kind
madeof
has proc open
has proc close
Rooms
dimension
type
has location
has type
has design
has proc open
has proc close
Streets:
has name
location
length
widthe
has proc open
has proc close
and may have other sub-streets

So I can say:

mytown.myhouse.frontdoor.madeof = “wood” (this means that the frontdoor of
myhouse at mytown is made of wood. I say this since I may have my own other
houses on same or different town).

Problem is, I cannot do it (nuby admits dumb). That is why I’m asking (for
pointers only).

Thank you in advance and sorry for the very nuby request.

kind regards -botp

Peña, Botp wrote:

Hi Friends,

Where can I get ruby tutorials that explains OO concepts (I’ve read the axe
and am still reading the rubyway, but still cannot find samples).

I’d like something that illustrates a hierarchy like:

Being shown a class hierarchy won’t tell you how it came about or
whether or not it’s any good.

Foprget about Ruby for a moment and go grab a copy of Designing
Object-Oriented Software, by Rebecca Wirfs-Brock (or maybe her newest
book, Object Design: Roles, Responsibilities, and Collaborations; I
haven’t read it.) It’s pricey for a relatively slim paperback, so hunt
up a used one if you can. But even at full price it’s worth the money.

You might also do well with:

Grady Booch. Object-Oriented Analysis and Design with Applications.
Benjamin/Cummings, Redwood City, CA, 1994.

Ivar Jacobson, with Magnus Christerson, Patrick Johnsson, and Gunnar
Övergaard. Object-Oriented Software Engineering: A Use Case Driven
Approach. Addison-Wesley, Wokingham, England, 1992

Ian Graham. Object Oriented Methods, 3rd Ed., Addison-Wesley, Wokingham,
1991.

Robert C. Martin. Agile Software Development, Principles, Patterns, and
Practices 1/e, Pearson Education, September 2002

Ruby gets a few mentions in that last book.

But the Wirfs-Brock book is wonderfully succinct, and small enough to
carry around.

For extra fun, try browsing the Portland Pattern Repository’s Wiki;
perhaps starting here:
http://www.c2.com/cgi/wiki?ObjectOrientedProgramming

( Then go add a vote for Ruby:
http://www.c2.com/cgi/wiki?VoteOnProgrammingLanguages )

James

···

kind regards -botp

For a Ruby oriented introduction to OO concepts, don’t overlook Mark
Slagell’s Teach Yourself Ruby in 21 Days.

The table of contents can be found here:

http://safari.informit.com/
?x=1&mode=toc&sortKey=title&sortOrder=asc&view=&xmlid=0-672-32252-
8&open=false&catid=&s=1&b=1&f=1&t=1&c=1&u=1&r=&o=1&srchText=

The errata page is here:

http://www.ruby-lang.org/~slagell/misprints.html

Regards,

Mark Wilson

···

On Sunday, June 29, 2003, at 11:42 PM, Peña, Botp wrote:

Hi Friends,

Where can I get ruby tutorials that explains OO concepts (I’ve read
the axe
and am still reading the rubyway, but still cannot find samples).

[snip]

Maybe this will help:

http://www.johnjohnsonsoftware.com/ruby/oop/index.htm

···

on 6/29/03 11:42 PM, Peña, Botp at botp@delmonte-phil.com wrote:

Hi Friends,

Where can I get ruby tutorials that explains OO concepts (I’ve read the axe
and am still reading the rubyway, but still cannot find samples).


Regards,
JJ

Finally using a Mac!

I’ll second this recommendation. The “Teach Yourself”
books vary greatly in quality, but this one is good.
Definitely not a dummies book.

Hal

···

----- Original Message -----
From: “Mark Wilson” mwilson13@cox.net
To: “ruby-talk ML” ruby-talk@ruby-lang.org
Sent: Monday, June 30, 2003 1:31 AM
Subject: Re: ruby tutorial

For a Ruby oriented introduction to OO concepts, don’t overlook Mark
Slagell’s Teach Yourself Ruby in 21 Days.