Flex: MVC frameworks comparison
Writing about web page https://admin.adobe.acrobat.com/_a200985228/p12266504/
As I’m about to move into using an MVC framework for Flex applications, I thought I’d have a look at what’s currently available. Rob has already done some work with Cairngorm, which is the solution suggested by Adobe, but there some others out there too, including PureMVC, Model-Glue, and Guasax, plus a few others I hadn’t heard of before, although some of these were immature or dormant.
The guys at Pattern Park recently conducted a comparison of the frameworks available. They scored each framework’s effectiveness using three main criteria – Approachability (how easy it was to set up a project and get started, the level of documentation and support), Scalability (how ‘expensive’ is it to add features, how ‘testable’ the code is), and Flexibility (is it open-source, can it be modified, is it context-independent etc.).
The presentation is well worth watching, but they concluded PureMVC scored most highly in all three criteria, with Cairngorm coming close behind. However as someone noted in the presentation, knowing Cairngorm is a prerequisite if moving between clients because many existing projects will be using it already. Luke Bayes has a follow-up to the presentation where these points are mentioned in greater detail.
Here are their reasons why PureMVC came out on top:
- Composition over inheritence
- Liberal use of Interfaces
- Indirection is used but not overwhelming
- Instance members hide singleton references from application code
- MXML views can be extremely thin
- Benefits of Cairngorm, with few of the disadvantages
The presentation is very useful for anyone considering patterns/frameworks for Flex development – I’m going to start working with PureMVC this week and see how it goes…