At most of the conferences I attend – people come up to me to discuss Cairngorm. Many of them have learned from my tutorials. I am glad that the videos have been helpful to so many (and the daily views still astound me). However, these videos were created by me over two years ago (almost to the day). In reality, a lot has happened in the last two years – and I want to give more insight into my current frameworks choices.
Presentation Slides (PDF)
Many people have asked that I make the Cairngorm Series downloadable (the video portions). Since I have gotten a handful of requests this week – I determined to go ahead and post the links:
UPDATE: Many people didn’t realize that there are written tutorials and exercise files that go along with each tutorial. You can find those here.
These videos are in FLV format. You will need an FLV player to view them. Adobe Media Player is the best FLV player, but they have not yet released a version for AIR 1.0. Until they do – you can use the following:
Note: There IS a Part 6 coming soon to the Cairngorm series. I was waiting on another developer to get finished on a specific project, but it doesn’t appear that will happen in the near future – so I won’t hold it up any longer.
In Part 4 you saw the full Service to Worker pattern demonstrated. However, the method discussed in the last tutorial doesn’t fit every situation. In this tutorial you will learn a few “best-practices” for Cairngorm projects as well as an extension to the Service to Worker pattern for more complex cases.
The basic Cairngorm Event Flow that is handled in Part 3 is essential to any Cairngorm application, but most applications interact with a server. The Service to Worker pattern that was discussed in the previous tutorial is essential to this process. To learn the expanded Cairngorm Flow, you will need to learn a few new Cairngorm elements.
Now that you have isolated two specific elements of the Cairngorm Micro-Architecture, you will now create a more complete Cairngorm application. Up to now the tutorials have covered only one design pattern, the ModelLocator, but now you will be introduced to the most crucial element of Cairngorm, the Service to Worker design pattern. The explanation of this pattern will span two tutorials. This tutorial will cover the basic flow inside of a Cairngorm application, and the next tutorial will expand this flow to include server interaction. However, before you can properly implement this design pattern you need to learn about the organization of a Cairngorm project.
Recap: In Part 1, I discussed the basic implementation and use of the ModelLocator pattern. This pattern is one of many design patterns contained within the Cairngorm micro-architechture. This design pattern will be used in Part 2 as well, so it is assumed that you are familiar with the concepts in Part 1 of the tutorial. At this point, we still are not working with a “complete” Cairngorm application (that will come in Part 3).
Part 2 – Using a ModelLocator to Manage the View
Note: As with all of the tutorials that will come in this series, this lesson has two parts. First, in the article you will learn the theory behind the topic, and then in the video you will do an actual “code-along”. The article will give some instructions in how to set up your project for the “code-along”.
I spoke about Cairngorm 2.2 in the Flex Bootcamp at Max this week. Many people were interested in Cairngorm, but I only had about 10 minutes to explain the basics of Cairngorm. I guess the easiest way to assist these people is to do a quick blog series on the benefits of Cairngorm. This series will combine articles with “code-along” videos.
Disclaimer: I do not claim the be “the expert” on Cairngorm – I am far from it. However, I have used Cairngorm on several large projects (both at Georgia Tech and in my own business). I am certainly open to corrections if you see that I have made an error on this project. If you want “the experts” check out: Steven Webster, Alistair McLeod, Alex Uhlmann, and Peter Martin.