PDA

View Full Version : How do most of you organize your Flex projects?


RR_QQ
05-17-2008, 12:15 AM
I really want to know how you people create your applications. For example I am trying to build a custom DataGrid that uses parts/components found in totally different library directory. However I am finding that some of these foreign parts are starting to need to communicate more with other parts I have in my DataGrid project but I cannot have two way communication. My main library directory is only supposed to provide components or data but not really get any data to process it - thats the job of the main AS in the DataGrid project to handle.

So I'm starting to believe that perhaps I cannot make an application that I can use and reuse anywhere but rather each time I need to use it I'm going to have to create one whole new project each modified to fit my need with most logic in there and with some general components/functionality found in the main library directory.

Is this the way most of you guys create you Flex applications? Its just having all my code all over the place is starting to get out of hand.

I wonder if I should use Cairnhorm....or whatever its called....

Any thoughts on project creation will be much appreciated!

creynders
05-18-2008, 03:32 PM
I really want to know how you people create your applications. For example I am trying to build a custom DataGrid that uses parts/components found in totally different library directory. However I am finding that some of these foreign parts are starting to need to communicate more with other parts I have in my DataGrid project but I cannot have two way communication. My main library directory is only supposed to provide components or data but not really get any data to process it - thats the job of the main AS in the DataGrid project to handle.

So I'm starting to believe that perhaps I cannot make an application that I can use and reuse anywhere but rather each time I need to use it I'm going to have to create one whole new project each modified to fit my need with most logic in there and with some general components/functionality found in the main library directory.

Is this the way most of you guys create you Flex applications? Its just having all my code all over the place is starting to get out of hand.

I wonder if I should use Cairnhorm....or whatever its called....

Any thoughts on project creation will be much appreciated!

I really like puremvc. It takes some time (and a few projects) to get the hang of it, but once you do, it's really easy to use and very versatile, reusable and clean.
And in general, I just try to follow proper OOP: no tight coupling, the hollywood principle and design patterns wherever and whenever I can fit them.

kahuja
05-23-2008, 02:13 PM
I have used Cairngorm very extensively. I evaluated PureMVC, but found that learning curve for that is way too much. My take after doing projects in both, no matter which one you use, you will have to add some customizations.