[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

Ruby design patterns and idioms

Jack Christensen

2/7/2006 1:01:00 AM

I've read Design Patterns and similar material. While I've certainly
picked up some good ideas, it seems that most of the techniques are
simply the normal ruby way, or are only necessary for lower level
languages and aren't applicable.

There are a lot of really useful things that can be done with
method_missing, duck-typing, closures, reflection, all the
metaprogramming stuff, etc. Most of what I understand of that comes from
looking through the source of ruby projects.

Are there any books or other resources on design patterns or techniques
specific to dynamic languages?

Jack


4 Answers

James Gray

2/7/2006 1:15:00 AM

0

On Feb 6, 2006, at 7:01 PM, Jack Christensen wrote:

> Are there any books or other resources on design patterns or
> techniques specific to dynamic languages?

See if this gets you going:

http://www.rubygarden.org/ruby?ExampleDesignPatt...

James Edward Gray II


Gene Tani

2/7/2006 3:52:00 AM

0


Jack Christensen wrote:

> Are there any books or other resources on design patterns or techniques
> specific to dynamic languages?
>
> Jack

i mostly search this mail list but:

the facets and extensions libs, ruby tricks-R-us

http://redhanded....
and why's links below the picture of the pickax on the right, prolly
take a fe wmonths to work thru ;-}

c2 and artima.com
http://c2.com/cgi/wiki?s...

and the draft ORA ruby cookbook looks very promising

james_b

2/7/2006 4:32:00 AM

0

Gene Tani wrote:
> Jack Christensen wrote:
>
>
>>Are there any books or other resources on design patterns or techniques
>>specific to dynamic languages?
>>
>>Jack

This may have already been mentioned, but:

http://norvig.com/design...


Smalltalk books should have interesting reading, too:

http://www.iam.unibe.ch/~ducasse/Free...


--
James Britt

"Programs must be written for people to read, and only incidentally
for machines to execute."
- H. Abelson and G. Sussman
(in "The Structure and Interpretation of Computer Programs)


Dido Sevilla

2/7/2006 5:28:00 AM

0

On 2/7/06, Jack Christensen <jack@jncsoftware.com> wrote:
> Are there any books or other resources on design patterns or techniques
> specific to dynamic languages?

I have an old issue of Dr. Dobb's Journal (August 1997), that has an
article entitled: "Dynamic Design Patterns in Objective-C: Dynamic run
times affect how programs are designed and built". While the article
focuses mainly on Objective-C and gives some examples from the
NeXTStep Runtime (today in use as Mac OS X's Cocoa), the dynamic
runtime of Objective-C is sufficiently similar to Ruby's that many of
the same principles apply. Apparently, the full text of the article
is available here:

http://202.179.135.4/data/DDJ/articles/1997/9708/9708d...