gutopia-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [rgui-dev] Re: GUItopia mixin names


From: Tom Sawyer
Subject: Re: [rgui-dev] Re: GUItopia mixin names
Date: 23 Aug 2002 01:31:06 -0600

On Fri, 2002-08-23 at 01:15, Harry Ohlsen wrote:
 
> Is there any reason you couldn't have a module with two sub-modules?  Then, 
> you could call the two mixins something like AutoObservable::Variables and 
> AutoObservable::Methods.  The main module wouldn't necessarily contain 
> anythong other than the Variables and Methods modules; it would just be 
> providing a namespace.  That would nice for a couple of reasons: you'd only 
> have to 'require' one module, and if you come up with other related, but 
> orthogonal mixins, you could just add more sub-modules.

that's a great idea! unless you come up with a better one then i'm going
to use this idea. thanks!
 
> I'm not sure whether the "Auto" adds anything to the meaning, by the way. The 
> automatic-ness (to coin a word) could just be considered an attribute of how 
> the mixin works, in practice.

i think we need to use 'Auto' because ruby already has a module called
Observer for the typical Obeserver pattern.

> I'm still thinking, but it's really hard to come up something that 
> encompasses 
> precisely what the mixins are doing.  However, I feel like the "Observable" 
> (or "Observer") is probably pretty close, anyway.

yes, let me know if you think of anything better. thanks for the help.

~transami






reply via email to

[Prev in Thread] Current Thread [Next in Thread]