A walkthrough on how to use Cairngorm with Flex or Air

6 June 2008, 19:20, by Jon

The Flex scene seems to be lacking in beginners’ guides to Cairngorm (maybe they are just alluding my Google searches) so I have put together (larger than hoped) a four part series that guides you through how I use Cairngorm.

For those of you who have read my articles on Tom Bray’s EasyMVC, this may sound surprising. I have previously posted articles on how to scale up EasyMVC into a Micro-architecture similar to Cairngorm. However, the rationale behind these articles was to help developers who implement EasyMVC and find their app out grows the implementation that Tom originally presented, and not as a blueprint for architecting apps. EasyMVC is a great framework for small Flex apps and Flex widgets where using Cairngorm would be the equivalent of taking a sledgehammer to a walnut. If you know in advance you application is going to be fairly sizable, use Cairngorm (or something like PureMVC if you prefer).

Before I get started, there is a slight disclaimer: I am going to present my own approach to using Cairngorm which does deviate from the documented approach, namely around services. I feel it is simpler, but you may beg to differ. I do not present this as the best solution or a perfect solution, but it is a tried and tested solution which hopefully will get more developers understanding and using Cairngorm where appropriate.

In essence this series should give you all you need to know to get started with Cairngorm.

Contents:

Part 1 – Setting up a project for Cairngorm
Part 2 – The Model
Part 3 – Commands
Part 4 – Services
Cairngorm Demo Source Files



Yay! the first comment.


I did a complete series on Cairngorm as well:

http://www.davidtucker.net/category/cairngorm/

Comment by David Tucker — 7 June 2008 @ 11:14

Leave a comment

About Jon

Jon started his career hacking code on his Sinclair Spectrum before moving on to more sophisticated machines ( ...such as a Commodore 64 ). He graduated from the University of Kent in 2000 with a degree in Computer Science and since then has worked in finance and education before co-founding Go Tripod. He is passionate about usability and design and his favourite development technologies are Ruby, and Objective-C/Cocoa. When he is not sat at his desk he is standing on his head doing yoga, refining his taste for food or on an adventure exploring the great outdoors.

Go Tripod Ltd

Go Tripod Ltd is a UK-based development company working with some of the most exciting software technologies around. Simon Ashley, Jon Baker and Colin Ramsay are the brains behind projects such as Stubmatic, and are developing bespoke web, mobile and desktop software for clients with household names. We believe in good service as well as good software, and we’re eager to work with people who feel the same.