It doesn't matter if it's a "collection of dumb value objects", a
component, a state variable, or just a common effect. If an object
is used more than a couple of times in the app, put it in the
ModelLocator.  Remember, everything is an object; instantiated and
destroyed like the rest of them (GC?:)).  The key is; does the object
need to be reusable?  If so, make it central.

-TH

p.s. right on Tom.

--- In [email protected], Tom Chiverton <[EMAIL PROTECTED]>
wrote:
>
> On Monday 04 December 2006 04:36, Lachlan Cotter wrote:
> > First, I have never seen examples or discussion of Cairngorm that
> > deals with this issue. In most cases the 'model' isn't much more
than
> > a collection of dumb value objects without complex relationships.
>
> I'm not sure you'd want your model to be very more complex.
>
> > Second, and more importantly, pretty much all the logic of Cairngorm
> > apps seems to reside in the Command and Delegate classes with not
> > much to speak about in the actual model. It seems to be the Commands
> > that end up manipulating the application data directly, and I'm a
> > little uncomfortable with this.
>
> I think it's a good idea to stick all the logic in once obvious place,
and
> then have that change the model, which uses data binding to make
things
> change in the view.
>
> > I'm not sure about how well it does encapsulation
> > and MVC.
>
> I got the opposite impression :-)
>
> --
> Tom Chiverton
> Helping to appropriately harvest fine-grained interfaces
>
> ****************************************************
>
> This email is sent for and on behalf of Halliwells LLP.
>
> Halliwells LLP is a limited liability partnership registered in
England and Wales under registered number OC307980 whose registered
office address is at St James's Court Brown Street Manchester M2 2JF. A
list of members is available for inspection at the registered office.
Any reference to a partner in relation to Halliwells LLP means a member
of Halliwells LLP. Regulated by the Law Society.
>
> CONFIDENTIALITY
>
> This email is intended only for the use of the addressee named above
and may be confidential or legally privileged. If you are not the
addressee you must not read it and must not use any information
contained in nor copy it nor inform any person other than Halliwells LLP
or the addressee of its existence or contents. If you have received this
email in error please delete it and notify Halliwells LLP IT Department
on 0870 365 8008.
>
> For more information about Halliwells LLP visit www.halliwells.com.
>


Reply via email to