[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

Design patterns

Daniel Mendler

3/16/2008 12:25:00 PM

Hi,

are there some good tutorials or references about design patterns in
ruby, which talk about mixins etc? I would really appreciate one because
ruby is quite different from other languages (and more flexible)
concerning oop.

I found a lot of modules using nested submodules like ClassMethods and
InstanceMethods. Is there a kind of ruby standard for such things?

Daniel

11 Answers

James Gray

3/16/2008 3:57:00 PM

0

On Mar 16, 2008, at 7:25 AM, Daniel Mendler wrote:

> are there some good tutorials or references about design patterns in
> ruby, which talk about mixins etc?

I really enjoyed this book on the subject:

http://blog.grayproductions.net/articles/design_patter...

James Edward Gray II


Mikkel Bruun

3/16/2008 6:51:00 PM

0

James Gray wrote:
> On Mar 16, 2008, at 7:25 AM, Daniel Mendler wrote:
>
>> are there some good tutorials or references about design patterns in
>> ruby, which talk about mixins etc?
>
> I really enjoyed this book on the subject:
>
> http://blog.grayproductions.net/articles/design_patter...
>
> James Edward Gray II

did you enjoy writing or reading it??? :-)

Mikkel
--
Posted via http://www.ruby-....

Jari Williamsson

3/16/2008 7:24:00 PM

0

James Gray wrote:
> On Mar 16, 2008, at 7:25 AM, Daniel Mendler wrote:
>
>> are there some good tutorials or references about design patterns in
>> ruby, which talk about mixins etc?
>
> I really enjoyed this book on the subject:
>
> http://blog.grayproductions.net/articles/design_patter...

+1 for this book (and I agree with the blog review). A great read and
quite different approach to most other books on Ruby.

The only time I found myself disagreeing with the book's author was
regarding the suggested solution on to how to test the Singleton pattern.


Best regards,

Jari Williamsson

Rolando Abarca

3/16/2008 7:25:00 PM

0

On Mar 16, 2008, at 2:51 PM, Mikkel Bruun wrote:

>>
> did you enjoy writing or reading it??? :-)
>
> Mikkel
> --
> Posted via http://www.ruby-....


the writer of the book is Russ Oslen, James is the writer of the
review :-)
--
Rolando Abarca M.





James Gray

3/16/2008 11:08:00 PM

0

On Mar 16, 2008, at 2:24 PM, Rolando Abarca wrote:

> On Mar 16, 2008, at 2:51 PM, Mikkel Bruun wrote:
>
>>>
>> did you enjoy writing or reading it??? :-)
>>
>> Mikkel
>> -- Posted via http://www.ruby-....
>
>
> the writer of the book is Russ Oslen, James is the writer of the
> review :-)

Sorry if I didn't make that clear. I linked to my review in the hope
that it would provide more detail about what was in the book.

James Edward Gray II

Thomas Wieczorek

3/17/2008 12:51:00 AM

0

On Sun, Mar 16, 2008 at 7:51 PM, Mikkel Bruun <mikkel@helenius.dk> wrote:
>
> did you enjoy writing or reading it??? :-)
>

It's a great book. I bought it and read it in about two days.

pat eyler

3/17/2008 5:44:00 AM

0

On Sun, Mar 16, 2008 at 5:08 PM, James Gray <james@grayproductions.net> wrote:
> On Mar 16, 2008, at 2:24 PM, Rolando Abarca wrote:
>
> > On Mar 16, 2008, at 2:51 PM, Mikkel Bruun wrote:
> >
> >>>
> >> did you enjoy writing or reading it??? :-)
> >>
> >> Mikkel
> >> -- Posted via http://www.ruby-....
> >
> >
> > the writer of the book is Russ Oslen, James is the writer of the
> > review :-)
>
> Sorry if I didn't make that clear. I linked to my review in the hope
> that it would provide more detail about what was in the book.


I also enjoyed the book, I've reviewed it too, I also interviewed
Russ and talked a bit about it:

http://on-ruby.bl.../2008/01/russ-olsen-inte...


>
> James Edward Gray II
>
>



--
thanks,
-pate
-------------------------
Duty makes us do things, Love make us do things well.
http://on-ruby.bl... http://on-erlang.bl...
http://on-soccer.bl...

Julian Leviston

3/31/2008 1:19:00 AM

0

Yeah, the book is okay, but it doesn't have all the patterns of the
GOF book, and some of the Ruby is really irksome... and sometimes it's
just wrong!

Julian.


On 17/03/2008, at 2:57 AM, James Gray wrote:

> On Mar 16, 2008, at 7:25 AM, Daniel Mendler wrote:
>
>> are there some good tutorials or references about design patterns
>> in ruby, which talk about mixins etc?
>
> I really enjoyed this book on the subject:
>
> http://blog.grayproductions.net/articles/design_patter...
>
> James Edward Gray II
>
>


Shin guey Wong

3/31/2008 4:46:00 PM

0

Julian Leviston wrote:
> Yeah, the book is okay, but it doesn't have all the patterns of the
> GOF book, and some of the Ruby is really irksome... and sometimes it's
> just wrong!
>
> Julian.

Can you point out which pattern in the book is wrong with Ruby? I never
read the GOF book. This is the first Design Pattern book I read, I
really want to know which pattern seems wrong. For me, everything look
nice and it is a good book for me.
--
Posted via http://www.ruby-....

Todd Benson

3/31/2008 5:01:00 PM

0

On Mon, Mar 31, 2008 at 11:46 AM, Shin guey Wong <sgwong513@hotmail.com> wrote:
> Julian Leviston wrote:
> > Yeah, the book is okay, but it doesn't have all the patterns of the
> > GOF book, and some of the Ruby is really irksome... and sometimes it's
> > just wrong!
> >
> > Julian.
>
> Can you point out which pattern in the book is wrong with Ruby? I never
> read the GOF book. This is the first Design Pattern book I read, I
> really want to know which pattern seems wrong. For me, everything look
> nice and it is a good book for me.

From the horse's mouth...

http://on-ruby.blogspot.com/2008/01/russ-olsen-inte...

I'm going out to buy it today, so I hope it isn't as bad as Julian
suggests. I don't have a problem if some of the code doesn't work
perfectly, since I distrust most of the code I look at anyway :-)

Todd