360 Max Cairngorm Zamf

1,867 views
1,786 views

Published on

Slides from a presentation at the 360|MAX unconference at MAX 2008 on Cairngorm and Zend AMF

Published in: Technology, Education
0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,867
On SlideShare
0
From Embeds
0
Number of Embeds
266
Actions
Shares
0
Downloads
82
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide

360 Max Cairngorm Zamf

  1. 1. CAIRNGORM
&
ZEND
AMF Open Source Flex Enterprise Development
  2. 2. ABOUT
ME VegasFlex UGM Interactive Engineer at Vision Airlines Adobe Fanboy Open Source Enthusiast
  3. 3. ZEND
AMF
  4. 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. 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. 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. 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. 8. SABREAMF PROS CONS Open Source Open Source Low-Level Library No Automatic VO Mapping No Service Browser
  9. 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)
  10. 10. NEW
NAME
PROPOSAL ZAMF!
  11. 11. CAIRNGORM
  12. 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. 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. 14. CAIRNGORM
 IN
15
MIN Trust Me. You Can Do It! Don’t Take Notes Hold Questions
  15. 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. 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. 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. 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. 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
  20. 20. CAIRNGORM
+
ZAMF
  21. 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

×