Monday, January 24, 2011

Cairngorm 3 and Parsley in Flex

Past a couple of years, I involved a few projects using Flex tech. we had some problems in my team when developing enterprise project. One is the code maintenance. As the project grows, AS commands, servce controls and UI mxml always involved together and hard to decouple. The other is unit test. The Flex is a very powerful event driven framework. However, when I wrote the unit test for a particular part of code, it because very hard to handle when the data is ready cause I don't know when the event will be triggered to generate the data required for unit tests if testing part involving UI operations.
Starting this year, we introduce Cairngorm 3 framework guideline and Parsley injection framework library. These techs hopefully help us to address the issue. MVC is a long existing framework, which decouple commands, views and controls. The idea of Cairngorm guideline is a implementation of decoupling in Flex. The Parsley lib is a popular IoC framework lib to use.
The resources I found are very useful:
  1. Adobe Cairngorm Home
    The first place you should go.
  2. Parsley lib Home
    Where you can find the guide to using Parsley and it's API.
  3. Arturo Alvarado's Quick Dive into Parsley
    A very good step-by-step guide to know about Parsley.
Unlike Cairngorm 2, Cairngorm 3 is a general guideline with a couple of helpful libs to develop Flex project. I hope there's no much obstacle to use the framework for my project.

1 comment:

Anonymous said...

You might also like the Adobe TV presentation that Piotr Walczyszyn did. I've collated my Flex research on Stack Overflow. Thanks for sharing these links too. http://stackoverflow.com/questions/2111277/cairngorm-framework/4427920#4427920