On Tue, 21 Aug 2001, Dave Thomas wrote:

> jweirich / one.net writes:
>
> > Ok, without further ado, here is a list of candidate guidelines ...
>
> Jim - A great list. I hope you don't mind, but I've copied it onto the
> wiki at http://www.rubygarden.org/ruby?RubyStyleGuide. If people have
> comments on thi, perhaps they can make them over there, so we'll have
> a permanent record and a growing list of style-related guidelines.

Some things that I think are particularly Rubyish in the sense of things
that I feel are particular nice about the way I find I automagically
program in ruby.

    * /ClassesAreCheap? -- Creating another class in ruby is very cheap
and easy. Make many small classes rather than a few large classes.
    * /MixinsAddFlavour? -- Having made a data structure, pause for a
moment and think what can you mix in to make it a lot more powerful.
    * /ModulesAreEasy? -- Having made a few classes, it is easy to
package'em up into modules.
    * /ExtendRatherThanWrap? -- Extend existing classes rather than
create new ones.

(OK, So I need to hunt up some good examples as I go along, I won't
complain if someone finds them for me...)


John Carter                             Phone : (64)(3) 358 6639
Tait Electronics                        Fax   : (64)(3) 359 4632
PO Box 1645 Christchurch                Email : john.carter / tait.co.nz
New Zealand

I'm becoming less and less convinced of humans as rational beings.
I suspect we are merely meme collectors, and the reason meme is only
kept on to help count our change.