PureMVC is the bomb.

Yes there is boiler plate code but the things it allows you to do is
very useful. The learning curve is a bit steep if you are not familiar
with MVC, but it is really, really worth it.

Cairngorm is pretty good, but I felt that the reusability of the code
wasn't as great as PureMVC. The fact that its language-specific is a
turn-off for me. I like that I can code PureMVC in pure AS3, Flex, C#
or Objective C if necessary.


Here is a posting on the PureMVC LinkedIn group I did recently that
may help clarify some points about the benefits of using a framework
in Flex:

The benefit of using a framework such as PureMVC for us is:

Consistency - Developing, (and especially developing remotely) you
need to enforce a focused singular vision not only on the project but
also its structure. A framework allows you to do that.
Stability - By using a framework you avoid a lot of the pitfalls of
spaghetti code. One of the unfortunate problems with Flex is that
while its really really easy to get moving, and perfect for rapid
prototyping, often these prototypes aren't thrown away, but instead
built on top of. Things quickly spiral out of control, and you can't
keep the house standing. I speak from personal experience, and also
from the experience of others.
Maintainability - By staying consistent you are able to easily build
features out using the same tried and true tactics. This means that
when developer A leaves and Developer B starts, you teach him the 'MVC
ropes' and they jump right in. This also means other people's code and
your code take on a similar feel, meaning you feel right at home in
most of the codebase, including things you didn't write.
Testing - By utilizing a framework we are able to peel off very
specific areas of the application and test just them. For example:
Perhaps you have a 'You have won!' screen at the end of a level. You
could play through a level to see the screen, or you could create a
special demo Mediator that pretends to win the level and immediately
displays the view and just test that.

* What are the limitations or cons of using a Framework with Flex 3?

I would say that the most difficult thing is there is a lot of boiler
plate code. Things in PureMVC are very loosely coupled, and the price
of this loose coupling is that you need to add a bit more code.

* Do I really need to use a Framework, or does Flex 3 have what it
takes out of the box?

YES you need a framework. Flex out of the box for anything beyond
small applications quickly becomes unmanageable. Even using frameworks
like Cairngorm can become overwhelmed if you plan to fork code.



On Tue, Dec 1, 2009 at 10:42 AM, Richard Rodseth <[email protected]> wrote:
>
>
>
> Personally, I like Mate and suggest you check it out before committing to 
> either of those too.
>
> On Tue, Dec 1, 2009 at 8:16 AM, Christophe <[email protected]> 
> wrote:
>>
>>
>>
>> Hello,
>>
>> Is it easy to learn and use Cairngorm or PureMvc. I have a one year 
>> application and I would like to use these frameworks to structured it.
>>
>> Thank you,
>> Christophe,
>>
>
> 


------------------------------------

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

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

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> 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