SlideShare una empresa de Scribd logo
1 de 21
Descargar para leer sin conexión
CAIRNGORM
&
ZEND
AMF
  Open Source Flex Enterprise Development
ABOUT
ME


VegasFlex UGM

Interactive Engineer at Vision Airlines

Adobe Fanboy

Open Source Enthusiast
ZEND
AMF
WHY
AMF


Much faster communication compared to XML (binary)

ActionScript Serialized

Cheap as Free (Open Source Solutions)
Adobe Systems published the AMF binary data protocol specification on December 13,
2007 and announced that it will support the developer community to make this protocol
available for every major server platform.
AMF
PHP
SOLUTIONS

AMFPHP
Patrick Mineault/Wade Arnold - Open Source

Zend AMF
Wade Arnold - Open Source

WebORB (.NET, Java, Ruby On Rails, PHP)
Midnight Coders - Free

SabreAMF
Evert Pot - Open Source
AMFPHP

          PROS                         CONS
Open Source                    Open Source

Popular                        Entry Level Solution

Quick Install

Maps VOs
          AMFPHP will be a fantastic fit for
          beginner to intermediate developers
                                        -Wade Arnold
WEBORB
(PHP)

                  PROS                      CONS
Support Packages Available         Ope Not n Source

Management Console                 “Sales” - Feel
service browser, code generators

                                   Not as “simple” an install




              quot;WebORB is WAY cooler than AFMPHPquot;
                                              -Wade Arnold
SABREAMF

        PROS                CONS
Open Source         Open Source

Low-Level Library   No Automatic VO
                    Mapping

                    No Service Browser
ZEND
AMF

         PROS                           CONS
Open Source                 New

Adobe Supported!            Terrible Official Name
                            e Zend Framework with the amf
                            protocol server implementation using
Rapidly Developed           the package Zend_Amf and the class
                            Zend_Amf_Server.
VO Mapping
                            No Service Browser
(Future universal service
browser)
NEW
NAME
PROPOSAL




ZAMF!
CAIRNGORM
CAIRNGORM
CLARIFICATION

Can seem complicated at first

DOES NOT HAVE TO BE HARD

Oen not well presented for new users.

Not only for large projects

Not only for LiveCycle Data Services

Don’t try to compare to server side MVC (Ruby on Rails,
CakePHP, etc)
CAIRNGORM

A lightweight, prescriptive framework for some of the
challenges consistent with the Flex RIAs we have
encountered

Using a small number of relevant design patterns, where the
moving whole is slightly greater than the sum of its static
parts

A microarchitecture for RIA development—a starting
point for your technical architecture that solves the
problems as they have been solved successfully before
CAIRNGORM

 IN
15
MIN
Trust Me. You Can Do It!
   Don’t Take Notes
    Hold Questions
OBLIGATORY
MVC
DIAGRAM

                   Model           Data in Model
                                 is bound to View
                  Central Data



   Controller Updates              View
     Data in model
          (CRUD/                      GUI
  General Mucking of Data)




              Controller            View dispatches
                                       an event
                        Logic
SIMPLE
CAIRNGORM
EVENT

Command Messes
                               Model                                  Data in Model
                                                                    is bound to View
 with Model Data                 Singleton


       Command                                                        View
             Logic
                                                                    MXML Components




                                                                               View Dispatches
                       Control                  Event                          Cairngorm Event
                     Event/Command Glue      Establish Parameters


              Event passes data to
            Command through Control
COMPLIFICATING
DIAGRAM

                              Command Updates           Model                                  Data in Model
                                                                                             is bound to View
                                 Model Data               Singleton
                               With Data From
                               Service Request




       Internets                         Command                                                View
         Vague Inaccurate                      Logic                                         MXML Components
       Earth Representation


                                                                                                          View Dispatches
                                                                                                          Cairngorm Event
Request/CRUD
                   Delegate                              Control                   Event
                  Handles Web Services                 Event/Command Glue       Establish Parameters
 Server Data

                                      Command                    Event passes data to
                                   Asks Delegate to            Command through Control
                                    Get the Service
                                   to Talk to Server
RIDICULOUS
DIAGRAM
                                            Factory                        Responder Updates
                                             Convert Data                     Model Data
                                             O en into VOs                  With Data From
                                                                            Service Request


                                                  Responder                                     Model                                  Data in Model
                                                                                                                                     is bound to View
                                                    Handles Web Results                           Singleton

                 Internets
                   Vague Inaccurate
                 Earth Representation
                                                                                                                                        View
                                  Sends instance of                                                                                  MXML Components
                                   VO in Request


                                        Delegate                                                                                                  View Dispatches
                                                                                                                                                  Cairngorm Event
Value Object
                                        Handles Web Services
                                                                      Command                    Control                   Event
                                                                                               Event/Command Glue       Establish Parameters
 AS Class designed                                                        Logic
  to handle data
   in a speci ed                                                                                         Event passes data to
                                                     Command
     structure.                                                                                        Command through Control
                                                  Asks Delegate to
                                                   Get the Service
                                                  to Talk to Server
CAIRNGORM

                  COMMANDMENTS

Never change model data from the view.
I don’t care if you can


Use Cairngorm Events for application wide events

Use Naming Conventions
LoginEvent, LoginCommand, LoginDelegate, LoginResponder, LoginVO


Use Reverse DNS Folder Structure

Charge More for Cairngrom Work
CAIRNGORM
+
ZAMF
DEMO


Using Cairngen in Flex Builder 3
http://blog.garthdb.com/2008/11/setting-up-cairngen-in-flex-builder-3/


SwitchVO VO Converter
http://www.garthdb.com/projects/switchvo


Hosted ZAMF
http://zamf.garthdb.com/bootstrap.php

Más contenido relacionado

Similar a 360 Max Cairngorm Zamf

Luis Alves Martins Presentation / CloudViews.Org - Cloud Computing Conference...
Luis Alves Martins Presentation / CloudViews.Org - Cloud Computing Conference...Luis Alves Martins Presentation / CloudViews.Org - Cloud Computing Conference...
Luis Alves Martins Presentation / CloudViews.Org - Cloud Computing Conference...EuroCloud
 
SVG in Data Acquisition and Control Systems
SVG in Data Acquisition and Control SystemsSVG in Data Acquisition and Control Systems
SVG in Data Acquisition and Control SystemsTao Jiang
 
Patterns of Cloud Applications Using Microsoft Azure Services Platform
Patterns of Cloud Applications Using Microsoft Azure Services PlatformPatterns of Cloud Applications Using Microsoft Azure Services Platform
Patterns of Cloud Applications Using Microsoft Azure Services PlatformDavid Chou
 
Spring Data for JJUG for Cross Conference Fall
Spring Data for JJUG for Cross Conference Fall Spring Data for JJUG for Cross Conference Fall
Spring Data for JJUG for Cross Conference Fall Toshihiko Ikeda
 
Cast Iron Overview Webinar 6.13.12 Final(Jb)
Cast Iron Overview Webinar 6.13.12 Final(Jb)Cast Iron Overview Webinar 6.13.12 Final(Jb)
Cast Iron Overview Webinar 6.13.12 Final(Jb)Carolyn Crowe
 
Deploying in the Cloud: Why and How
Deploying in the Cloud: Why and HowDeploying in the Cloud: Why and How
Deploying in the Cloud: Why and HowMatt Small
 
Spring Cairngorm
Spring CairngormSpring Cairngorm
Spring Cairngormdevaraj ns
 
Adopting Agile Tools & Methods In A Legacy Context
Adopting Agile Tools & Methods In A Legacy ContextAdopting Agile Tools & Methods In A Legacy Context
Adopting Agile Tools & Methods In A Legacy ContextXavier Warzee
 
NIG 系統開發指引
NIG 系統開發指引NIG 系統開發指引
NIG 系統開發指引Guo Albert
 
Scalable Enterprise Ready Neutron Networking with Nuage Networks
Scalable Enterprise Ready Neutron Networking with Nuage NetworksScalable Enterprise Ready Neutron Networking with Nuage Networks
Scalable Enterprise Ready Neutron Networking with Nuage NetworksScott Sneddon
 
BSM201.pdf
BSM201.pdfBSM201.pdf
BSM201.pdfNovell
 
[DSBW Spring 2009] Unit 07: WebApp Design Patterns & Frameworks (2/3)
[DSBW Spring 2009] Unit 07: WebApp Design Patterns & Frameworks (2/3)[DSBW Spring 2009] Unit 07: WebApp Design Patterns & Frameworks (2/3)
[DSBW Spring 2009] Unit 07: WebApp Design Patterns & Frameworks (2/3)Carles Farré
 
Business Service Management on the Fly—In under 60 Minutes!
Business Service Management on the Fly—In under 60 Minutes!Business Service Management on the Fly—In under 60 Minutes!
Business Service Management on the Fly—In under 60 Minutes!Novell
 
Introduction to Software-defined Networking
Introduction to Software-defined NetworkingIntroduction to Software-defined Networking
Introduction to Software-defined NetworkingAnees Shaikh
 

Similar a 360 Max Cairngorm Zamf (20)

Wpf Tech Overview2009
Wpf Tech Overview2009Wpf Tech Overview2009
Wpf Tech Overview2009
 
Luis Alves Martins Presentation / CloudViews.Org - Cloud Computing Conference...
Luis Alves Martins Presentation / CloudViews.Org - Cloud Computing Conference...Luis Alves Martins Presentation / CloudViews.Org - Cloud Computing Conference...
Luis Alves Martins Presentation / CloudViews.Org - Cloud Computing Conference...
 
SVG in Data Acquisition and Control Systems
SVG in Data Acquisition and Control SystemsSVG in Data Acquisition and Control Systems
SVG in Data Acquisition and Control Systems
 
Patterns of Cloud Applications Using Microsoft Azure Services Platform
Patterns of Cloud Applications Using Microsoft Azure Services PlatformPatterns of Cloud Applications Using Microsoft Azure Services Platform
Patterns of Cloud Applications Using Microsoft Azure Services Platform
 
Spring Data for JJUG for Cross Conference Fall
Spring Data for JJUG for Cross Conference Fall Spring Data for JJUG for Cross Conference Fall
Spring Data for JJUG for Cross Conference Fall
 
Cast Iron Overview Webinar 6.13.12 Final(Jb)
Cast Iron Overview Webinar 6.13.12 Final(Jb)Cast Iron Overview Webinar 6.13.12 Final(Jb)
Cast Iron Overview Webinar 6.13.12 Final(Jb)
 
Deploying in the Cloud: Why and How
Deploying in the Cloud: Why and HowDeploying in the Cloud: Why and How
Deploying in the Cloud: Why and How
 
Spring Cairngorm
Spring CairngormSpring Cairngorm
Spring Cairngorm
 
Adopting Agile Tools & Methods In A Legacy Context
Adopting Agile Tools & Methods In A Legacy ContextAdopting Agile Tools & Methods In A Legacy Context
Adopting Agile Tools & Methods In A Legacy Context
 
Introducing spring
Introducing springIntroducing spring
Introducing spring
 
XS Japan 2008 Oracle VM English
XS Japan 2008 Oracle VM EnglishXS Japan 2008 Oracle VM English
XS Japan 2008 Oracle VM English
 
NIG 系統開發指引
NIG 系統開發指引NIG 系統開發指引
NIG 系統開發指引
 
Scalable Enterprise Ready Neutron Networking with Nuage Networks
Scalable Enterprise Ready Neutron Networking with Nuage NetworksScalable Enterprise Ready Neutron Networking with Nuage Networks
Scalable Enterprise Ready Neutron Networking with Nuage Networks
 
saurabh soni rac
saurabh soni racsaurabh soni rac
saurabh soni rac
 
Cloudy Ajax 08 10
Cloudy Ajax 08 10Cloudy Ajax 08 10
Cloudy Ajax 08 10
 
BSM201.pdf
BSM201.pdfBSM201.pdf
BSM201.pdf
 
Db trends final
Db trends   finalDb trends   final
Db trends final
 
[DSBW Spring 2009] Unit 07: WebApp Design Patterns & Frameworks (2/3)
[DSBW Spring 2009] Unit 07: WebApp Design Patterns & Frameworks (2/3)[DSBW Spring 2009] Unit 07: WebApp Design Patterns & Frameworks (2/3)
[DSBW Spring 2009] Unit 07: WebApp Design Patterns & Frameworks (2/3)
 
Business Service Management on the Fly—In under 60 Minutes!
Business Service Management on the Fly—In under 60 Minutes!Business Service Management on the Fly—In under 60 Minutes!
Business Service Management on the Fly—In under 60 Minutes!
 
Introduction to Software-defined Networking
Introduction to Software-defined NetworkingIntroduction to Software-defined Networking
Introduction to Software-defined Networking
 

Último

Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsHyundai Motor Group
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 

Último (20)

Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 

360 Max Cairngorm Zamf

  • 1. CAIRNGORM
&
ZEND
AMF Open Source Flex Enterprise Development
  • 2. ABOUT
ME VegasFlex UGM Interactive Engineer at Vision Airlines Adobe Fanboy Open Source Enthusiast
  • 4. WHY
AMF Much faster communication compared to XML (binary) ActionScript Serialized Cheap as Free (Open Source Solutions) Adobe Systems published the AMF binary data protocol specification on December 13, 2007 and announced that it will support the developer community to make this protocol available for every major server platform.
  • 5. AMF
PHP
SOLUTIONS AMFPHP Patrick Mineault/Wade Arnold - Open Source Zend AMF Wade Arnold - Open Source WebORB (.NET, Java, Ruby On Rails, PHP) Midnight Coders - Free SabreAMF Evert Pot - Open Source
  • 6. AMFPHP PROS CONS Open Source Open Source Popular Entry Level Solution Quick Install Maps VOs AMFPHP will be a fantastic fit for beginner to intermediate developers -Wade Arnold
  • 7. WEBORB
(PHP) PROS CONS Support Packages Available Ope Not n Source Management Console “Sales” - Feel service browser, code generators Not as “simple” an install quot;WebORB is WAY cooler than AFMPHPquot; -Wade Arnold
  • 8. SABREAMF PROS CONS Open Source Open Source Low-Level Library No Automatic VO Mapping No Service Browser
  • 9. ZEND
AMF PROS CONS Open Source New Adobe Supported! Terrible Official Name e Zend Framework with the amf protocol server implementation using Rapidly Developed the package Zend_Amf and the class Zend_Amf_Server. VO Mapping No Service Browser (Future universal service browser)
  • 12. CAIRNGORM
CLARIFICATION Can seem complicated at first DOES NOT HAVE TO BE HARD Oen not well presented for new users. Not only for large projects Not only for LiveCycle Data Services Don’t try to compare to server side MVC (Ruby on Rails, CakePHP, etc)
  • 13. CAIRNGORM A lightweight, prescriptive framework for some of the challenges consistent with the Flex RIAs we have encountered Using a small number of relevant design patterns, where the moving whole is slightly greater than the sum of its static parts A microarchitecture for RIA development—a starting point for your technical architecture that solves the problems as they have been solved successfully before
  • 14. CAIRNGORM
 IN
15
MIN Trust Me. You Can Do It! Don’t Take Notes Hold Questions
  • 15. OBLIGATORY
MVC
DIAGRAM Model Data in Model is bound to View Central Data Controller Updates View Data in model (CRUD/ GUI General Mucking of Data) Controller View dispatches an event Logic
  • 16. SIMPLE
CAIRNGORM
EVENT Command Messes Model Data in Model is bound to View with Model Data Singleton Command View Logic MXML Components View Dispatches Control Event Cairngorm Event Event/Command Glue Establish Parameters Event passes data to Command through Control
  • 17. COMPLIFICATING
DIAGRAM Command Updates Model Data in Model is bound to View Model Data Singleton With Data From Service Request Internets Command View Vague Inaccurate Logic MXML Components Earth Representation View Dispatches Cairngorm Event Request/CRUD Delegate Control Event Handles Web Services Event/Command Glue Establish Parameters Server Data Command Event passes data to Asks Delegate to Command through Control Get the Service to Talk to Server
  • 18. RIDICULOUS
DIAGRAM Factory Responder Updates Convert Data Model Data O en into VOs With Data From Service Request Responder Model Data in Model is bound to View Handles Web Results Singleton Internets Vague Inaccurate Earth Representation View Sends instance of MXML Components VO in Request Delegate View Dispatches Cairngorm Event Value Object Handles Web Services Command Control Event Event/Command Glue Establish Parameters AS Class designed Logic to handle data in a speci ed Event passes data to Command structure. Command through Control Asks Delegate to Get the Service to Talk to Server
  • 19. CAIRNGORM
 COMMANDMENTS Never change model data from the view. I don’t care if you can Use Cairngorm Events for application wide events Use Naming Conventions LoginEvent, LoginCommand, LoginDelegate, LoginResponder, LoginVO Use Reverse DNS Folder Structure Charge More for Cairngrom Work
  • 21. DEMO Using Cairngen in Flex Builder 3 http://blog.garthdb.com/2008/11/setting-up-cairngen-in-flex-builder-3/ SwitchVO VO Converter http://www.garthdb.com/projects/switchvo Hosted ZAMF http://zamf.garthdb.com/bootstrap.php