Filed Under: Flex
Alot has happened since my rant about Cairngorm. My friend Børre Wessel has always told me to use a presentation model when working with Cairngormas a way to better separate the view from the model. So I have tried this approach a few times now on some small projects, and I have to agree that it really is a good way to sort out this issue.
Børre and I are of course not the only ones doing this. Paul Williams put up a simple example on how to use a presentation model, but yesterday I found an even better article outlining how to use the same pattern with Cairngorm.
David Deraed has a post Cairngorm and Presentation Model Part 2: sample application on his blog Flex May Day which gives a step by step guide with source code on how to implement the Presentation Model pattern with Cairngorm. When reading the article make sure you read the comments too as they point out a few important aspects about the code sample. You might also want to read part 1 of the article to get some background.
Using the Presentation Model pattern is in my opinion the best way of resolving separation between model classes and the view.
Subscribe to comments feed (this is global, not just for this entry)
Being accustomed to the development tools for Java development it has been really frustrating to move into the world of Flex and Action Script with it’s immature IDE’s. However it seems as if this is finally getting attention at Adobe and the Open Source project FlexPMD is really becoming a great tool for assuring quality [...]
I have for some time been running Ubuntu on my work-at-home-computer. Having to work with Flex on Linux is a constant struggel and I can understand why most people would just give up. I can see that the number of Flex developers on Linux is quite small, however I think it’s a shame that we’re [...]
One of the most challenging tasks when being architect on a large project is to keep some kind of track on what developers are doing while you are wasting away time in planning meetings and all other kinds of useless management activities. In the Flex echo system there are very few tools which help you [...]