ActionScript Developer's Guide to PureMVC
Publisher: O'Reilly Media
Final Release Date: December 2011
Pages: 264

Gain hands-on experience with PureMVC, the popular open source framework for developing maintainable applications with a Model-View-Controller architecture. In this concise guide, PureMVC creator Cliff Hall teaches the fundamentals of PureMVC development by walking you through the construction of a complete non-trivial Adobe AIR application.

Through clear explanations and numerous ActionScript code examples, you’ll learn best practices for using the framework’s classes in your day-to-day work. Discover how PureMVC enables you to focus on the purpose and scope of your application, while the framework takes care of the plumbing in a maintainable and portable way.

  • Get a detailed overview of the PureMVC process for developing your application
  • Model the domain by designing the schema and creating framework-agnostic value objects
  • Implement framework-agnostic View components that expose an API of events and properties
  • Use the Proxy pattern to keep track of value objects and hide service interaction
  • Facilitate two-way communication between a View component and the rest of the application
  • Stitch the Model and View tiers together with command objects in the Controller
  • Manage problematic View component life cycles, and learn how to reuse the Model tier
Table of Contents
Product Details
About the Author
Recommended for You
Customer Reviews

REVIEW SNAPSHOT®

by PowerReviews
oreillyActionScript Developer's Guide to PureMVC
 
3.5

(based on 8 reviews)

Ratings Distribution

  • 5 Stars

     

    (3)

  • 4 Stars

     

    (2)

  • 3 Stars

     

    (0)

  • 2 Stars

     

    (2)

  • 1 Stars

     

    (1)

71%

of respondents would recommend this to a friend.

Pros

  • Accurate (4)
  • Helpful examples (4)
  • Well-written (4)

Cons

    Best Uses

    • Intermediate (5)
    • Expert (4)
      • Reviewer Profile:
      • Developer (5)

    Reviewed by 8 customers

    Sort by

    Displaying reviews 1-8

    Back to top

     
    4.0

    Detailed discussion of complex example

    By hnuecke

    from Germany

    About Me As3flex Developer

    Pros

    • Complete Example
    • Detailed Discussion
    • Providing Best Practices

    Cons

    • Red Line A Bit Missing

    Best Uses

    • Intermediate
    • Learn Mvc Concepts

    Comments about oreilly ActionScript Developer's Guide to PureMVC:

    Very detailed presentation and discussion of a pretty complex pureMVC application.
    As a first example pretty tough, but well commented and explained. I also like the many tips and hints and warnings. Like a good friend telling you what to do; and what better not to do.
    Reading the book and (mostly) understanding the example helped me a lot writing first own code and understanding other examples.

     
    5.0

    Great insight of a great framework

    By Hazzardous

    from Sydney, Australia

    About Me Developer

    Verified Reviewer

    Pros

    • Accurate
    • Concise
    • Helpful examples
    • Well-written

    Cons

    • Prior Knowledge Required

    Best Uses

    • Expert
    • Intermediate

    Comments about oreilly ActionScript Developer's Guide to PureMVC:

    Man, dug this book. It's so refreshing to see the author of a framework unveil the thinking behind the framework and also demonstrate the planning and development of a real world example of a project built on it.

    Most books often show minimalist examples in order to help people comprehend the concepts being discussed. I think this approach is excellent, however, it often makes it a challenging task for the reader to apply the concepts to the real world. At times, I've even implemented concepts derived from other books in the most impractical way. I've even done it with the pureMVC framework.

    I think this book has provided me great insight that would help me utilise PureMVC better and even help me understand MVC in general. I think the development workflow suggested in the book will drastically impact my approach to software development and I believe I will be a better developer for it.

    Thanks, Cliff.

    (1 of 1 customers found this review helpful)

     
    1.0

    Skatty style is difficult to get into

    By Gareth

    from UK

    About Me Developer

    Verified Reviewer

    Pros

      Cons

      • Skatterbrain

      Best Uses

        Comments about oreilly ActionScript Developer's Guide to PureMVC:

        I bought this book for use on my Kindle during my commute. It was the fourth or fifth such book I had purchased, having enjoyed considerable satisfaction from reading and finishing all the others.

        I just couldn't get into it. The author starts off by jumping straight into examples without explaining the concepts first, then just as you're starting to work it out for yourself (despite the book rather than because of it), he changes direction entirely and starts writing in the style of a novel.

        No.

        As a developer I want a logical approach to these things. I want facts. If I wanted a novel I would have bought a different book and if I wanted to jump straight into examples with no explanation I would look up free examples on the internet.

        I couldn't recommend this book to anyone.

        (0 of 1 customers found this review helpful)

         
        5.0

        Makes sense to me

        By Vincent

        from Boston, MA

        About Me Developer

        Verified Reviewer

        Pros

        • Accurate
        • Easy to understand
        • Helpful examples
        • Well-written

        Cons

        • Multicore Not Covered

        Best Uses

        • Expert
        • Intermediate
        • Student

        Comments about oreilly ActionScript Developer's Guide to PureMVC:

        I am new to PureMVC, and MVC in general, but I have been using ActionScript and Flex for several years now. I picked up this book because I am working on a project that uses the framework, and I needed to learn it quick. I read it cover to cover in a few days and followed along in the example code downloaded from the O'Reilly site. It's not that complex once you 'get it', and the book does give you what you need to get there.

         
        2.0

        The worst guide I read last time

        By roman_curse

        from East Europe

        Verified Reviewer

        Pros

          Cons

          • Difficult to understand
          • Half Of Book Is Code
          • Not comprehensive enough
          • Too many errors

          Best Uses

            Comments about oreilly ActionScript Developer's Guide to PureMVC:

            The same situation, ordered the book at work for getting in PureMVC. But had to look for other manuals in internet. I use PureMVC now, but this book was a waist of time.
            If to compare with other books by Oreilly, I was very disappointed, and don't trust this label very much more.
            As well were watching the video by Cliff Hall, yes indeed a lot about theory, about MVC. But a'int no way Cliff Hall can learn you use it.

            (0 of 1 customers found this review helpful)

             
            5.0

            I recommend this book

            By Ondina D. F.

            from Europe

            About Me Developer

            Verified Reviewer

            Pros

            • Accurate
            • Complete code
            • Focus on MVC
            • Helpful examples
            • Non-trivial example
            • Well-written

            Cons

              Best Uses

              • Expert
              • Intermediate
              • Novice

              Comments about oreilly ActionScript Developer's Guide to PureMVC:

              If you'd look at forums for Actionscript frameworks, you'd notice that the questions revolve mostly around application's architecture and how to implement the design patterns promoted by each of these frameworks, and less around the usage of the framework.

              No matter what framework you'll choose to use or are already using, this book can help you understand the MVC concepts and other principles or design patterns, like the SRP (Single Responsibility Principle), SoC (Separation of Concerns), code reusability, naming conventions, package structure. It helps you answer the big questions everyone asks themselves when they start developing a complex application: where to start, how to organize the classes, which class should do what and how to enable the communication between them in the most efficient way, in other words, how to deal with the complexity of a real-world application. Since the book focuses more on general architectural aspects than on the PureMVC framework itself, the lessons learned through reading it can help *any* software developer, and are applicable on different development platforms, not only the Flash platform. In fact, the title of this book should have been: Developer's Guide to MVC on the basis of PureMVC.

              The book takes you gently through all the stages of building a non-trivial application:
              - from brain-storming to defining the requirements, the use cases and a startup flow
              - from preparing the project and package structure to building all your classes and the relationships between them
              You'll learn about the classes outside of the boundaries of your application (domain model and view components), and why they should be the starting point in prototyping your app.
              I liked the great emphasis put on 'Modelling the Domain'.
              Even though the example used in this book is pretty complex, it is quite easy to understand, because for each class you'll find a description of its responsibilities and collaborations, and the code itself is very well commented. I liked the fact that the example is original, not the usual Shopping app or something like that…
              I also liked the author's pragmatic point of view and the hands-on way of presenting the framework.

              Conclusion: This book expands and solidifies your knowledge of architectural and design patterns in general and the PureMVC framework in particular. The book and example are a welcome and useful addition to the excellent documentation, demos and knowledge base on the PureMVC's website and forum.

              (1 of 2 customers found this review helpful)

               
              2.0

              Seems rather incomplete?

              By Mark

              from Honolulu, HI

              Verified Reviewer

              Comments about oreilly ActionScript Developer's Guide to PureMVC:

              I asked my company to buy this book because I need to fix an application that is built using PureMVC. I need to know what to do when one of the resources fails to load properly. Unfortunately, StartupResourceFailedCommand is not mentioned in this book even once even though it is part of the PureMVC framework. The word 'error' appears once in all of the 216 pages, which doesn't bode well for people trying to figure out how to do proper error-handling using PureMVC.

              (1 of 2 customers found this review helpful)

               
              4.0

              A great help w/ PureMVC (MVC in general)

              By Zermatt Chris

              from Zermatt, Switzerland

              About Me Designer, Developer, Ski bum

              Verified Reviewer

              Pros

              • Accurate
              • Concise
              • Helpful examples
              • Well-written

              Cons

              • A bit specific to AS3

              Best Uses

              • Expert
              • Intermediate
              • Student

              Comments about oreilly ActionScript Developer's Guide to PureMVC:

              I've been following and dabbling with PureMVC for a while, but have always missed a thorough example and discussion of how best to set-up and organise a larger project -- most of the how-to's and blog articles out there are either very basic, a bit outdated or focus on some specific project detail, making it a bit tough to get started with PureMVC.

              This book is geared towards Adobe's ActionScript 3 and Flex, but many of the tips & pointers apply equally to the (many) other ports of PureMVC.

              I'm interested in PureMVC in conjunction with an AIR/Javascript project I'm tinkering with. My goal is to use PureMVC to handle the basic project organisation (the 'Core') and then be able to pick-and-choose other js libs/frameworks to handle "the bits at the boundries", especially the View components, where I'm looking to use Agility.js, Less.js and jQuery.

              The only point I would have liked to have seen would have been a short section after the initial overview/planning chapters detailing the creation of a super-simple, but working app. For me it dropped a wee bit quickly into the fairly involved StoryArchitect app example.

              Conclusion:
              If you're interested in working with PureMVC, then I wouldn't hesitate to pick up this handy reference. I'm hoping to be able to apply this to the rumored *PureMVC Native Javascript* port soon (fingers crossed).

              Cheers,
              -Chris

              Displaying reviews 1-8

              Back to top

               
              Buy 2 Get 1 Free Free Shipping Guarantee
              Buying Options
              Immediate Access - Go Digital what's this?
              Ebook: $13.99
              Formats:  DAISY, ePub, Mobi, PDF
              Print & Ebook: $32.99
              Print: $29.99