Posts Tagged Cairngorm

First Take at Swiz Framework

I came across a project at work that was written using Swiz so I decided to spend the weekend getting my head around Swiz Framework for Flex. Swiz is a framework that provides Inversion of Control and Dependency Injection as its killer feature. I have been using Cairngorm for too long now and I was pleased with how Swiz handles the events, handles the dependency Injections and makes life so much easier.

In order to learn something, you always have to write some code with your own hands to actually see whats going on. So I decided to re-write coldfusiondocs using Swiz. Its currently written using Cairngorm and it still is using the Cairngorm version on the live website. For those of you who want to see what I ended up doing, I have committed everything to the SVN repository. I have created a new tag called coldfusiondocs_swiz which has all the code. You are more than welcome to review the code and suggest any improvements or changes. The project is open source anyways and its always good to have extra pair of eyes looking over. :)

Anyways, back to Swiz, here are a few things I learnt while doing this mini-project. :-

  • All Swiz expects you to do is define the Bean Config in the main Application file. After ofcourse dropping the .swc library in the ‘libs’ folder. There is nothing else you need to do, framework wise. Everything else is pretty much framework independent.
  • There are no imports required from the Framework source and the Events are native Flex Events, which I think is, one less thing to worry about.
  • The Event handling and Mediation leaves the developer with only the application logic to worry about rather than firing events and mapping them to commands etc.

Overall, I think I could get used to this quite easily. The framework is still not as stable and mature as some of the other frameworks but I can see it going in that direction.

Tags: , , ,

ColdFusionDocs now using Cairngorm

This weekend, I thought of revisiting the Coldfusiondocs.com application which I didn’t get the time to even touch for last so many months. I thought using Cairngorm to re-write the app would be ideal as it’s the most widely used Flex framework around.

So, I went ahead and re-wrote the whole thing using Cairngorm (took me one full day) and in the process optimized/fixed the existing minor problems as well. And I also thought that, since this is a project for the community, why not release the code to the community as well. So, for those who are interested, here is the Project with the source code. And yes, project contributors are most welcome. There is loads we can do with it.

A note for those code critics : I am not a Flex guru and definitely not a Cairngorm guru. So, please keep the code critics to be postive ones please. This doesn’t mean my code is bad, it just means it “might” not be the best code around. Also remember, this is not a paid project anyways.

Tags: , ,

WP SlimStat