8.19.2007

Everything about Cairngorm: Samples, Code Generation,Unit Testing

You want to develop a loosely coupled, scalable solution for your next project. One of your colleagues might tell you that Cairngorm (CG) is the way to go. But you found it really scary. Is it really scary?

Dear friend! I can assure you about the simplicity of the Cairngorm micro architecture.

Cairngorm is the collection of some design patterns borrowed from J2EE fraternity. Sounding tough? Hold on!

It’s nothing but some well-known and largely used solution for common problems developers encounter in their day to day job.

Cairngorm is very flexible. Creators of CG encourage you to modify it and use it as per your requirements. You will find yourself using everything or something of CG once you are comfortable with it. You just need to get into it and once you are into it,you will not look back. You will just love it.

Are you ready to get started?

How to and where to start?

I have listed down step by step guide to use those recourses you will find around the flex ecosystem.

Read this interesting post by Steven Webster before you try anyhing with Cairngorm

-Why I think you shouldn’t use Cairngorm

If you still interested and determined to implement Cairngorm in your next project. Have a close look to these diagrams.

Diagram
-Cairngorm Diagram
-Cairngorm Diagram Explorer

Interesting? Want more understanding on CG architecture. Read these six part articles by Steven Webster of Adobe Consulting.

-Six-part article

Now is the time to make your hand dirty with some real coding. Have a look to the below given link. It will give you step by step guideline on how to setup your Cairngorm project. You will also get to see a very basic implementation of CG which is famous by the name of Cairngorm Login Example. Keeping the legacy of Steven, he has also written 3 part articles for beginners.

-Login Example

Need to see more complex implementation. Here are some links for you:

-Cairngorm Store Example Updated to Cairngorm 2.1
-wordweb-visualization-graphs-keywords-from-digg-api
-WebService & Cairngorm 2 Example by Jesse Warden’s
-Some sample code examples on cairngorm

How about generating codes automatically ?

-Cairngen
-Cairngorm code generator

Need to do some Unit Testing?

flexunit_basics
cairngorm-iresponder-async-flexunit
Unit testing Flex with FlexUnit and Cairngorm - The IResponder interface hurdle

I have noticed some promising screenshots in thinkingdigital blog. This guy has got some cool plan on screenshots but not sure it will be ever materialized or not.

- Cairngorm Plugin

3 comments:

Aasim said...

Nice post Deba!
I too was wary of CG before getting starting to work on it. The links you have mentioned are gr8 and are the best starting points to begin learning CG.

Only once i finsihed CG did i realize how easy it becomes to design and develop scalable apps.

Debabrata said...

Thanks Aasim! I have prepared it based on my learning experiece of CG!I am happy that you liked it!

Anonymous said...

The matchless answer ;)