Yes, however, I try to create files that can be reused... that way different 
"save" buttons can use the same save event, command and/or the same save 
service.  Oversimplifying, I know, but that's the general idea.  If you have 
an app that performs lots of CRUD then you can generalize your code and 
reuse alot of it in different places.  One CreateEvent, CreateCommand, 
CreateService but they all accept a variety of arguments so you can reuse 
them in different situations.

Darren



>From: "flxcoder" <[EMAIL PROTECTED]>
>Reply-To: [email protected]
>To: [email protected]
>Subject: [flexcoders] Cairngorm:One controller, so many commands, so many 
>delegates, so many events
>Date: Mon, 14 Aug 2006 18:01:21 -0000
>
>Now I have about 4-5 events that correspond with the app server and
>get data back. Each of these events get registered with the
>CairngormEvent. When the controller executes these events it needs a
>command associated with the event. Each such command needs a delegate.
>
>So for my one interaction with the server I have at least one Event
>class, one Command class and one delegate class and untold number of
>interests in the ModelLocator. This is leading to code cluge.
>
>Just wondering whether this is what the rest of the developers are
>doing or am I doing something wrong. In my app, I might end up having
>about 30-40 separate server calls at least. That will lead to 90-120
>independant files.
>
>Is this what you are running into as well? Am I missing something?
>
>Thanks.
>
>
>
>
>
>
>--
>Flexcoders Mailing List
>FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
>Yahoo! Groups Links
>
>
>
>
>
>




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to