Mate

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    1 Favorite

    Mate - Presentation Transcript

    1. An Opinionated Introduction to Mate by John Blanco
    2. Mate is, quite simply, another MVC framework for Flex. What is Mate? Yes. And now someone wrote another one called Mate. And I’ll try to explain why it’s easier to use and more powerful. But didn’t someone already write Cairngorm?
      • Working with modules is tricky.
      • Service Locator/Delegates are bulky.
      • Bulky boilerplate code everywhere.
      • No solution for Views.
      • It’s 2008.
      What’s wrong with Cairngorm?
      • Working with modules is tricky.
      • Proxy class is awfully coupling.
      • MASSIVE boilerplate code everywhere.
      • DRY principle violated consistently.
      • THE CASTING IS DRIVING ME MAD@&!
      • Mediators are singleton only.
      • Cross-platform-ness means it’s not Flex-y.
      • Debugging a nightmare.
      What’s wrong with PureMVC?
      • Working with modules straightforward.
      • Loose coupling everywhere.
      • Virtually no boilerplate code.
      • No casting!
      • N Views can be populated at once.
      • Native events used for communication.
      • Debug!
      What’s *right* with Mate?
    3. Mate was created by AS Fusion -- Laura and Nahuel. While the source code is freely available, you can not contribute back any changes without going through one of them. However, they are extremely active on their forums and very willing to improve the product based on recommendations! http://mate.asfusion.com Who wrote Mate? Is it open source?
    4. Models are regular classes. No inheritance needed. Does not need to be a singleton. Does not need to be static. Just make a model. :-) The Elements of Mate: Models
    5. Views are regular classes. No inheritance needed. XML or AS is fine. No knowledge of models or controllers needed (or desired). Just make a view. :-) The Elements of Mate: Views
    6. Events are subclasses of…Event! No CairngormEvent or Notification classes needed. Fire regular events. This means that we can pull out components and we have no dependency on Mate. Very clean. The Elements of Mate: Events
    7. Event Maps are the only place you will ever put Mate-specific code. The event maps weave together models and views in myriad ways. Event maps, in general, will handle events by binding data to views, calling methods (like Commands), serve as Mediators, and even invoke network processes and handle returns! The Elements of Mate: Event Maps
    8. <!-- Debugger --> <Debugger level=“{ Debugger.ALL }” /> <!-- Event Handlers --> <EventHandlers type=“{ CalculateEvent.TOTAL_COST }” debug=“true” > <MethodInvoker generator=“{ CartManager }” method=“calculateTotal” /> </EventHandlers> <!-- Injectors --> <Injectors target=“{ CartView }”> <PropertyInjector targetKey=“total” source=“{ CartManager }” sourceKey=“total” /> </Injectors> The Elements of Mate: A Quick Event Map Example
    9. Let us look at some examples, shall we?
    10. Questions?
    SlideShare Zeitgeist 2009

    + John BlancoJohn Blanco Nominate

    custom

    494 views, 1 favs, 0 embeds more stats

    An introduction to Mate and why we need it. Review more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 494
      • 494 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 1
    • Downloads 14
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories