2010-12-28

Studying Parsley Framework

I've been building this pretty big application at work, its the main application we use to manage all of our internal accounts. The application has been in construction for 2 years now, its all done in Flex and Java and on the Flex side of things, I've been using Cairngorm as my application framework. However as we've being adding different parts (some are not often used) the application has gotten bigger and I've been looking to break things up into modules to help manage everything. Both from a run-time perspective (memory consumption) and from a development perspective (maintenance).

Of course using modules got me to thinking about how everything would work with Cairngorm, so I started doing some research and came across the Parsley application framework. Parsley is an Inversion-of-control (IOC) framework much like Spring is in the Java programming world. Meaning you have a config file that describes all the objects you want framework to manage for you and then it injects the appropriate object(s) into other object(s) for you, so no one object knows about the other. This makes your code loosely coupled, easier to update and maintain and finally, easy to unit test.

The framework appears to be well designed and like I just mentioned, reminds me of Spring, so the concepts are easy to understand. Also, it seems that parts of the latest Cairngorm (version 3.0) can be used along with it, so this will help as well. And the biggest point is that it has build in support for working with Flex modules, so I am eager to use it.

I'll be writting some blog posts of my experiences with Parsley, so look for them soon!

No comments: