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, ...

Get Flexible Rails now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.