| Jon Rose’s Blog | | Enterprise Software Consultant Open Source / Java / Flex Flex Practice Director @ Gorilla Logic, Inc. InfoQ.com RIA Editor |
![]() |
Comments:
Chris on November 18th, 2009 at 7:42 am #
Hi Jon, My company is considering switching to Flex (from Oracle Forms… yuk), and I’m currently looking for a framework, to develop a highly customisable application (we have different features for each customer…). I see that I’m not the only one confused by the recent Cairngorm announcement. I started looking at comparisons between Cairngorm, PureMVC, Mate, Swiz… and would like your take on these different frameworks (obviously, you don’t like Cairngorm…). I need something not too complicated, so that Forms developers don’t immediately reject the new technology (Mate seems fairly simple). Thanks, Chris.
cease on November 18th, 2009 at 12:36 pm #
“MVC2/Model 2, which was created to deal with building user interface within request/response model. This model is completely at odds with building a rich Internet application.” Rather than spending the blogpost complaining about how bad it is, you should of listed whats wrong, and why its wrong in your opinion. I do agree with your points, after working with both Cairngorm, but I instead went with PureMVC, which I feel like you would probably make the same arguments of silly design patterns, and over architected (at least this is what I feel are your major arguments for cairngorm).
Bucky Schwarz on November 18th, 2009 at 1:16 pm #
@Chris I used to work at a company that used Oracle Forms and migrated to Flex 2/3. Over there, Cairngorm was pretty much universally disliked. We tried PureMVC on a project and it was easier than Cairngorm, but it was still a bit roundabout and complicated for doing simple tasks. Check out this link for a discussion on Flex frameworks. http://www.adobe.com/devnet/flex/articles/flex_framework_02.html
Allen R. on November 18th, 2009 at 1:26 pm #
I share the same sediment, in fact, I was the lone voice at my current employer advocating NOT using a micro-framework, a debate I lost. Flex’s event architecture coupled with the power of ActionScript (if you’re willing to use it, and not write it like it’s Java, i.e. embrace closures) and a few conventions will allow for the creation of clean, usable code. Mate, Swiz, PureMVC, Cairngorm, SpringAS, etc, they’re all trying to bring answers to Java’s hurdles into Flex. A previous comment asks “what’s wrong with it?” I’ll give one example. Flex’s data binding is not the end all, there are plenty of instances where code in your UI needs to have a hookpoint after an asynchronous response is received. Most people use Cairngorm’s “view locator” to interface into the view from the command, but at that point, you’ve lost all that the commands supposedly buy you. I find myself constantly working around the framework, a prediction I made before we started using it.
Huge Balls on November 18th, 2009 at 1:58 pm #
What you have to remember is that Cairngorm has always blown goats. It was created by IterationTwo and hyped as the best thing ever for Flex development. At the time there was no other Flex frameworks to compare it to so it ‘won’ by default. What they always failed to mention was that it was actually the best for their own bottom line because it gave their company tons of ‘credibility’ and lead to them being bought out. They are now ‘Adobe Consulting’. Cairngorm is the worst framework for Flex development and I highly recommend not using it. It will turn a light weight, modular, and clean application into a gigantic non-modular piece of crap that takes long to write and is hard to maintain. That and it will multiply the number of files and the size of your application by ~8x.
jonr on November 18th, 2009 at 2:42 pm #
Hi Chris, On my current project we are using Mate. It’s ok, but I don’t think I would use it again. I just don’t think it does enough for the extra overhead it imposes. It also seem better suited to smaller applications with simpler flows. When we selected Mate, I did an in-depth evaluation on Swiz and like they way it approaches things. We went with Mate over it because we had team members with previous experience working with it. The Parsley framework has been all the rage lately: http://www.spicefactory.org/parsley/. I haven’t looked at it yet, but it’s next on my list to checkout. Good Luck.
jonr on November 18th, 2009 at 2:46 pm #
Hi Cease,
jonr on November 18th, 2009 at 2:50 pm #
Bucky,
jonr on November 18th, 2009 at 2:50 pm #
Thanks for the comment Allen. I completely agree!
Ryan K on November 18th, 2009 at 5:27 pm #
We are using swiz on are current project and really liking it. http://code.google.com/p/swizframework/ It is very lightweight and unobtrusive. With all the bad reviews on cairngorm why doesn’t Adobe take a hint a drop it? If Flex developers are ever forced into using a cairngorm I would rather go back to using plain HTML.
Darren on November 18th, 2009 at 5:40 pm #
Parsley seems to be coming along very well and the lead developer Jens seems very responsive in the Parsley forums. RobotLegs is another framework which is built on solid OOP principles and is almost at 1.0:
Chris on November 19th, 2009 at 2:54 am #
Thanks to all for the input, although I’m a little bummed that Jon has decided not to use Mate again (it was my favorite “on paper”). The following two comparisons favor it, but they’re probably already outdated…: I’m turned on by the apparent simplicity, especially compared to Cairngorm and PureMVC. Also, it seems that if I chose Mate and realized I’d made a mistake, it would be easier to switch because of the absence of framework code in the views, business logic, and server access. But I will now check out the links you guys have posted.
Mario Arias on November 19th, 2009 at 5:39 pm #
Hi I’m new to Flex development, but I have a strong background in Java (Spring, Struts, Stripes) and Action Based MVC frameworks I think that impose a “Action Based MVC” framework in a RIA is a big error, must if is based on Struts. Is necessary to understand that “Action Based MVC” are a great help (at least in the case of Stripes, Struts is a pain in the …) in a Request/Response scenario. But In a RIA scenario is shooting your self in the foot. At this point I think that Flex is very competent presentation technology and you don’t need and extra layer of complexity. With a good knowledge of OOP, you’ll produce correct applications in Flex in no time. The two things that I miss are the language: ActionScript is a nice language (and IntelliJ helps a lot), but some things are a bit odd; and a IoC container (Maybe I’ll pick Spring AS)
Jack on November 20th, 2009 at 1:55 pm #
Another happy swiz user here. You can use it as much or as little as you want. Many conveniences, like being able to listen for an event anywhere in any class or mxml within the app.
Niko on November 23rd, 2009 at 4:33 am #
I think opinions like this from seasoned Java guys should be required reading for anyone who has come to Flash from elsewhere, like a design background (myself included). The worst are the people who have come to Flash a looong time ago, seen it grow, and learned programming with Flash (myself included), and then get all excited about adding more and more architecture to Flash. I’m lucky to work with people who have been through this on Java, so they’re there to hit me on the head if I start to get tempted by shiny frameworks…
Alberto on December 23rd, 2009 at 10:40 am #
I agree with you jonr. Model2 /MVC pattern was an improvement over model 1 development with jsp, asp but has nothing to do now a days in a Flash client. My expirience with model 2 frameworks in Java is huge i have developed with and tested a lot of them and what i can say is that kind of frameworks are very prone to errors because for building a simple page you have to touch and configure too many things. Flex framework is clean enought to allow everybody build understandable applications. Post a comment
|
|