[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

OOP in Ruby?

aidy

5/22/2008 4:18:00 PM

Hi,

Anyone know of any good resources regarding OOP in Ruby?

Aidy
37 Answers

Phillip Gawlowski

5/22/2008 4:29:00 PM

0

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

aidy wrote:
| Hi,
|
| Anyone know of any good resources regarding OOP in Ruby?

Err, about everything, I guess. ;P

~From personal experience: The PickAxe (Programming Ruby), and The Ruby
Way by Hal Fulton cover this nicely. And I suspect the O'Reilly book The
Ruby Programming Language (co-written by Matz) covers that in-depth, too.

- --
Phillip Gawlowski
Twitter: twitter.com/cynicalryan
Blog: http://justarubyist.bl...

~ Is it a right to remain ignorant?
-- Calvin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail....

iEYEARECAAYFAkg1n3IACgkQbtAgaoJTgL/XggCfb2X2OGk9CN8rUCQQoLwWZLpP
IzcAoJCGS3oPjIjZ+C3l7+mDJKUQ6Hcn
=x33R
-----END PGP SIGNATURE-----

Sam Rudd

5/22/2008 4:31:00 PM

0

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

Can you be more specific?

On Thu, May 22, 2008 at 5:20 PM, aidy <aidy.lewis@googlemail.com> wrote:

> Hi,
>
> Anyone know of any good resources regarding OOP in Ruby?
>
> Aidy
>
>

Mark Wilden

5/22/2008 4:48:00 PM

0

On May 22, 2008, at 9:29 AM, Phillip Gawlowski wrote:

> I suspect the O'Reilly book The
> Ruby Programming Language (co-written by Matz) covers [OOP] in-
> depth, too.

I'm surprised that RPL (does it even have an abbreviation?) hasn't
made a bigger splash. Or have I just missed it? About the only thing
I've seen is a review by someone who didn't finish it. It seems like
an O'Reilly book by Matz would be required reading for us all. And
Flanagan is a good writer, though he and I have clashed technically.

I still have some of Pickaxe left, then I'm going to dive into RPL.

///ark

Lyle Johnson

5/22/2008 5:00:00 PM

0

On Thu, May 22, 2008 at 11:48 AM, Mark Wilden <mark@mwilden.com> wrote:

> I'm surprised that RPL (does it even have an abbreviation?) hasn't made a
> bigger splash. Or have I just missed it?

I can't cite any specific references, but I've heard a lot of good
things about it (and I own a copy as well). I get the impression it's
selling fairly well. To be fair, it's still a fairly new book and so
it's not quite as well-established as the PickAxe.

James Britt

5/22/2008 5:03:00 PM

0

aidy wrote:
> Hi,
>
> Anyone know of any good resources regarding OOP in Ruby?

You might do well to first look for good OOP references, then see how
they ideas are applied in Ruby.


Designing Object-Oriented Software by Rebecca Wirfs-Brock is quite good.


Be mindful that not everyone has the same idea of what it means to be
OO; Ruby is largely message-oriented (unlike, say, Java's form of OO).
(And not everyone who writes about OO in Ruby sees it that way. Caveat
lector.)



--
James Britt

http://www.... - Hacking in the Desert
http://www.jame... - Playing with Better Toys

Dave Bass

5/22/2008 5:04:00 PM

0

Ruby is so object oriented that's it's almost impossible *not* to learn
about OOP by using it.

Books: Pickaxe is good; I'm halfway through reading it from cover to
cover (while also using it for reference). Another book I have is Ruby
Cookbook, by Carlson and Richardson, pub. by O'Reilly, which is next in
the queue for my bedtime reading.

I didn't know about the Matz book; that sounds well worth looking into.

Perhaps the OP is after a book on OOP illustrated by Ruby examples,
rather than the other way around?
--
Posted via http://www.ruby-....

Tim Hunter

5/22/2008 5:26:00 PM

0

Lyle Johnson wrote:
> On Thu, May 22, 2008 at 11:48 AM, Mark Wilden <mark@mwilden.com> wrote:
>
>> I'm surprised that RPL (does it even have an abbreviation?) hasn't made a
>> bigger splash. Or have I just missed it?
>
> I can't cite any specific references, but I've heard a lot of good
> things about it (and I own a copy as well). I get the impression it's
> selling fairly well. To be fair, it's still a fairly new book and so
> it's not quite as well-established as the PickAxe.

I also own a copy. I don't have it with me right now so I can't cite any
specific examples, but I've found it oddly incomplete. Sometimes I'll
look up something and not find it, and have to go to the Pickaxe
instead.

So, overall I think it's a good companion to the Pickaxe.
--
Posted via http://www.ruby-....

Dave Thomas

5/22/2008 6:23:00 PM

0


On May 22, 2008, at 12:41 PM, Dana Merrick wrote:

> To the best of my knowledge, RPL is your best source for ruby 1.9
> information right now, which I'm sure will give it a leg up.

Actually, not wanting to toot my own horn too much, but... The new
PickAxe beta is more up-to-date: Ruby 1.9 has changed significantly
since December, and it continues to change. Hundreds of methods have
been added to the built-in set. Complex and Rational are now built in.
Existing methods have tweaks to their behavior. And changes are still
being made. If you want a paper book now with 1.9 stuff in it, then
RPL's the only game in town. I deliberately haven't looked at it
because I don't want to taint what I'm writing for the PickAxe, but I
hear good things.

If you're OK with a PDF that is getting updated as 1.9 evolves, then
you might want the PickAxe.


Dave

Mark Wilden

5/22/2008 6:43:00 PM

0

On May 22, 2008, at 10:00 AM, Lyle Johnson wrote:

> On Thu, May 22, 2008 at 11:48 AM, Mark Wilden <mark@mwilden.com>
> wrote:
>
>> I'm surprised that RPL (does it even have an abbreviation?) hasn't
>> made a
>> bigger splash. Or have I just missed it?
>
> I can't cite any specific references, but I've heard a lot of good
> things about it (and I own a copy as well). I get the impression it's
> selling fairly well. To be fair, it's still a fairly new book and so
> it's not quite as well-established as the PickAxe.

I wonder if most people are like you and me: bought it as soon as it
came out, but haven't read it yet. :)

///ark

Marc Heiler

5/22/2008 7:18:00 PM

0

> I wonder if most people are like you and me: bought it as soon as it
> came out, but haven't read it yet. :)

Cant speak for anyone else but normally when i buy something i will read
it. But if it is too boring, I will never finish. That is a general rule
by the way. ;)

The worst thing were some perl books years ago. I have never finished
reading them, gave most of them away already (only one is kept because I
will work through it, note what is important in my local knowledge base,
and then give this book away as well)
--
Posted via http://www.ruby-....