A New Series on Understanding and Using the Swiz Framework for Flex

As part of my commitment to blog more often in 2009, I'm starting an ongoing series on the Swiz framework for Flex. If you aren't aware, Swiz is the brianchild of Chris Scott, and may CF'ers will recognize him from this work on the ColdSpring framework. Being the brilliant guy that he is, he's taken many of the principles of Spring and ColdSpring and applied them to Flex development. The result is Swiz, and after doing work with Cairngorm, Swiz is like being paroled! It feels pretty nice to do things simply with Swiz that would have required large amounts of boilerplate code in Cairngorm.

At Broadchoice, we chose Swiz as the framework to underpin our Workspace application. As a result, I've had a good amount of time to get familiar with Swiz and try out some of it's bleeding-edge features. What I'd like to do is share what I've learned about it, with two main goals: To explain how it is useful to folks not familiar with it (or even with Flex for that matter). And second, to try and get some discussion going among those already using Swiz to see if I can learn more from them, and vice versa.

I've chosen to examine and work through a fairly simple (though non-trivial) Flex application that uses Swiz. Over the coming days and weeks I'll be blogging about various pieces of the application and what Swiz is doing. I figure it will end up being about 7 or 8 blog entries, but we'll see how it goes and what sort of comments and response I get.

Just to create a starting point to work up from, here are some of the topics I plan to talk about. Each of these is incorporated in the sample application I'm building, so we'll do more than simply talk about these, we'll put them to use.

  • Getting a Swiz application running
  • Swiz dependency injection and autowiring
  • Using the Swiz Central Dispatcher for events
  • Dynamic Responders
  • Using the MockAsyncToken to simulate remote server requests
  • Dynamic Mediators
  • Dynamic Commands
  • The Fluint unit testing framework for Flex
  • Integrating Swiz into Fluint to ease testing

I have a few other ideas for topics that I may throw in or add as tangents, but let's see how this initial roadmap goes. I'll be working on the app as we go, so I'll primarily be posting code in the blog entries, and then at the end I'll push a finalized zip file of the application for folks to download and play with. The first entry will up in the next day or so. What do you folks think? Anyone out there ready to dig into Swiz with me?

Related Blog Entries

Comments
Looking forward to hearing your review, Brian. We're also evaluating Swiz at work - along with a couple other frameworks - and it's been positive so far.
# Posted By Steve Brownlee | 1/5/09 11:33 AM
How lucky for me! I've done some small Flex apps, but was looking at Swiz for a larger app I'm starting work on. I'm planning on connecting it to a yet to be developed CF backend (Transfer, Coldbox?) and look forward to your posts.

Thanks Brian!
# Posted By Stephen Judd | 1/5/09 11:38 AM
Hi Brian,

I would love to follow along and as someone who understands Flex but has not worked with Spring or Caringnorm, I can give you that "new person" perspective. I hope that means that I don't ask dumb questions...
# Posted By Paul Carney | 1/5/09 11:42 AM
I read a bit on Swiz and was a bit overwhelmed. I look forward to this series to help me wrap my head around what seems like a very organized way to do flex work. I'll be following along for sure.
# Posted By Brian FitzGerald | 1/5/09 11:52 AM
That's great. I'm using Model-Glue-Flex right now, but I've been pondering switching over to Swiz do to it's offerings!!!
# Posted By Russell Brown | 1/5/09 12:19 PM
I am definitely looking forward to this series. It'll be nice to have a concrete example to follow along with. I've begun to play around with the frameworks in Flex and Swiz was on my shortlist.
# Posted By Gareth Arch | 1/5/09 4:10 PM
Hi Brian and yes i'm very interested in this series.
# Posted By dougi | 1/6/09 4:46 AM
Hey Brian! I'm really looking your posts as well. Your ColdSpring posts have been so valuable to the community, and I am sure your Swiz articles will be equally great!
# Posted By Chris Scott | 1/6/09 4:40 PM
I've been meaning to dig into Swiz for months now so I'm definitely looking forward to following along!
# Posted By Nathan Mische | 1/7/09 5:00 PM
Thanks all! I'll wrap up the first entry tonight and post it tomorrow morning.
# Posted By Brian Kotek | 1/7/09 5:53 PM
BlogCFC was created by Raymond Camden. This blog is running version 5.9.1. Contact Blog Owner