All entries for Monday 28 January 2008

January 28, 2008

Flex: MVC frameworks comparison

Writing about web page

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…


MXNA link



    Other blogs I like...

    Black Pepper Software

    Eismann-sf Go to 'Comments on: Design News for Web, Graphic Designers'

    Ted On Flex Go to 'Ted On Flash'



    Not signed in
    Sign in

    Powered by BlogBuilder
    © MMXXII