Bjorn When I started Flex development in earnest a couple of months ago, I looked at Cairngorm and had some of the same concerns raised in the SilvaFUG presentation - mainly the Singleton issue, but also the type casting necessary to get event data into commands, and the amount of boiler-plate.
My current efforts are modelled on MVCS/ReviewTube, and I feel pretty good about it. But I dispatch bubbling events from views, rather than calling Controller methods there. At the top level, I invoke the controller methods, and I like having a controller class with type-safe methods, that invokes Operations. I've not missed implicit invocation so far, but the application is admittedly not yet very large. Given the convenience of anonymous function callbacks, the MVCS Operations (which are NOT equivalent to Cairngorm Commands) seem to work quite well. To address the mild objection (where's the shared code?) raised in the SilvaFUG video, the tiny Operation base class is about the only piece of MVCS/ReviewTube that I could imagine sharing. After attending James Echmalian's talk at 360 Flex/Seattle (http://ech.net/360flex2007/), I was anxious to see updated sample code, because I'm sure Allurent has learned a lot since the MVCS article was written, but I have been unable to reach James or Joe. I'm a big proponent of Dependency Injection (having used Spring in server-side Java work), and I like the way Joe achieves this in a simple way with Components.as/mxml, though I'll be keeping an eye on Prana. I am now motivated to look at PureMVC when I get a chance. - Richard On 10/22/07, Bjorn Schultheiss <[EMAIL PROTECTED]> wrote: > > Hey All, > > I don't know if there has been a previous thread on this. I'm > assuming there is but i thought i'd start one again in light of some > recent blog posts about a Silvafug meeting by the assertTrue guys on > frameworks. > > http://www.asserttrue.com/articles/2007/10/17/silvafug-application- > frameworks-presentation > http://probertson.com/articles/2007/10/18/flex-application-frameworks- > presentations/ > http://www.sephiroth.it/weblog/archives/2007/10/flex_frameworks.php > > I haven't used PureMVC yet but I have used Cairngorm for a while > (since the flash 7 days). > > I will say I've got a few beefs with Cairngorm and from just looking > at the PureMVC diagram i already see a few solutions. > > I guess my main beefs with cairngorm has been the use of commands. > Specifically in creating Re-usable commands. > the 1 to 1 event-command-delegate methodology has never sat well with > me. > > Dumb Models (vo collections) is another. > > Support for unit testing in the View is another. > > Anyone care to help start a discussion? > > regards, > > Bjorn >

