tags:

views:

523

answers:

3

I have been seeing some Flex Frameworks, but would like to ask to the programmers and Architects down here on which has suited best in your application.

  • Cairngorm
  • Pure MVC
  • Mate Framework

Custom One.

A: 

PureMVC.... I like to have control and not relying on data binding... also since its been ported in different languages it has more value in my book than just a Flex only framework. Overall any MVC architecture is a plus in my book and it comes down to personal coding style/preference.

Shua
A: 

Cairngorm, and when I can't use Cairngorm (say, when using Flash CS3), I will simulate it (and it is really easy to duplicate conceptually). It is easy to set up, stupid simple, lightweight, and fast. If done correctly, it also forces a VERY clear separation of form and content. It fits in brilliantly with the native Flex classes and exploints data binding to the fullest. Of course, this might have something to do with the fact that it is the standard which Adobe explicitly endorses. Further, it is by far the most popular, which means if you need other people to be brought in and work on your projects, it will be far easier to find people who know Cairngorm than people who know the alternatives.

I find PureMVC incredibly bloated, non-ActionScript intuitive, and generally useless unless you work in a 99% Java company that does a very small amount of work with Flex and you want to have both use the same system.

I don't know anything about the rest.

Christopher W. Allen-Poole
Cairngorm lost my vote because of it's lack of support for module applications.
Shua
The only time that modules cause problems is if you want to have multiple ServiceLocators, but that should be a similar problem in PureMVC as a Singleton in a parent swf will be the same Singleton in a descendant swf (honestly, that can be a mixed blessing).That said, Flex has some issues with it's external communication anyway. That can be seen here explicitly: http://stackoverflow.com/questions/1070719/remoteobject-inconsistent-channel-location, but the very fact that a SWFLoader can't use a URLRequest as a source is a similar deficiency.
Christopher W. Allen-Poole
+3  A: 

After using, in turn, all three of frameworks you listed, I can easily conclude that Mate is by far the superior framework. Of course, that's only my opinion and determining what makes a framework superior differs depending on your requirements.

To me, Mate's most appealing feature is how well it separates the different tiers of your application. After becoming familiar with it, I could never go back to using a framework that makes extensive use of global-state "Singletons" (Cairngorm, PureMVC).

However, Mate can probably be a bit difficult getting started with as the documentation is still a bit lacking and outdated, making it hard to know where to find the newest information. Some of the best practices and approaches that have been ironed out are to be found in the Mate forums, requiring some digging through posts. One of the most active users on that forum, Theo, has written a very good summary on the benefits of Mate in the following post:

http://stackoverflow.com/questions/37043/flex-mvc-frameworks

Stiggler