Part 3. Refactoring

Now that we’ve made substantial progress in our application, we’ve added enough code that the design issues are starting to become apparent. First, we notice that we have lots of data and behavior, but we aren’t following a centralized approach—everything feels a little scattered. We’ll address this by refactoring the code to use the Cairngorm framework, which is an application framework for Flex.

Next, we’ll address the issue that there is no object model on the client, just a bunch of XML. We’ll address this by doing a refactoring in which we add an object model.

This part includes two iterations:

At the end of it, we’ll have ...

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.