O'Reilly logo

Flexible Rails: Flex 3 on Rails 2 by Peter Armstrong

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 8. Refactoring to Cairngorm

First, resist the opportunity to scatter state all over your application as strings, numbers, Booleans, and all manner of other primitive objects.

Steven Webster[1]

1http://www.adobe.com/devnet/flex/articles/cairngorm_pt2_print.html.

In this iteration, we’ll refactor the Flex code to use Cairngorm with HTTPService. We’ll use Cairngorm in a slightly nonstandard way, to be slightly less verbose and more aligned with the design preferences of Rails. (This book won’t attempt to explain “How to Use Cairngorm in the Standard Way.” (Of course, there’s not really a “standard way” any more, now that Cairngorm has been split into Cairngorm and Cairngorm Enterprise.) To learn the standard way of using Cairngorm, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required