Flex on Rails: Rad Race Weapons

1,484 views

Published on

Ernest Micklei's slide's of his presentation at the RubyenRails 2007 conf in Amsterdam.

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

No Downloads
Views
Total views
1,484
On SlideShare
0
From Embeds
0
Number of Embeds
42
Actions
Shares
0
Downloads
154
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide

Flex on Rails: Rad Race Weapons

  1. 1. RadRace Weapons Flex ↔ Rails Ernest Micklei @ QNH.nl
  2. 2. “Fighting Rules” <ul><li>Teams of 2 developers must create a Web Application on site </li></ul><ul><li>Anything goes </li></ul><ul><ul><li>Hardware, Software, Books, Samples </li></ul></ul><ul><li>But </li></ul><ul><ul><li>Mission is kept secret </li></ul></ul><ul><ul><li>No Internet access  </li></ul></ul>2 of 7
  3. 3. “ Guns and Ammo” <ul><li>Tools </li></ul><ul><ul><li>IDE-s, Repository, Rake, … </li></ul></ul><ul><li>Frameworks on top of </li></ul><ul><ul><li>Ruby, Rails, AS3, Flex </li></ul></ul><ul><li>Machinery </li></ul><ul><ul><li>22” monitors </li></ul></ul><ul><ul><li>3 laptops, hubs, keyboards, cables, HD, stickies, printer, …. </li></ul></ul>* images are trademarked by their respective owners RestWorks 3 of 7
  4. 4. Face Fear <ul><li>Internationalization </li></ul><ul><li>Session management </li></ul><ul><li>X-layer Validations </li></ul><ul><li>Browser History </li></ul><ul><li>Report generation </li></ul><ul><li>Database import </li></ul><ul><li>XML Transformation </li></ul><ul><li>RSS </li></ul><ul><li>Help </li></ul><ul><li>Optimistic locking </li></ul><ul><li>Email </li></ul><ul><li>Autorisation </li></ul><ul><li>Exception handling </li></ul><ul><li>Logging </li></ul><ul><li>Password encryption </li></ul><ul><li>Look & Feel </li></ul><ul><li>comply to the “ilities” </li></ul><ul><ul><li>Usability </li></ul></ul><ul><ul><li>Maintainability </li></ul></ul><ul><ul><li>Testability </li></ul></ul><ul><ul><li>Extendability </li></ul></ul>4 of 7
  5. 5. “Secret Weapon” <ul><li>REST is all about Resource Access (CRUD) </li></ul><ul><li>IMHO Resource Manipulation is “tricked” </li></ul><ul><li>=> Command + Reply </li></ul><ul><li>RestWorks expirement </li></ul><ul><ul><li>handle commands -> replies </li></ul></ul><ul><ul><li>handle exceptions -> restfaults </li></ul></ul><ul><ul><li>generate Flex code </li></ul></ul><ul><ul><ul><li>Services, Models, Views, Grids, Windows, Tests </li></ul></ul></ul>5 of 7
  6. 6. Command and Conquer TM * trademark of Electronic Arts Inc. Flex anOrderService .calculate(order_id,…) < command name=“calculate”> <parameter name=“order_id” value=“42” /> </ command > Rails class OrderController < ApplicationController def calculate(order_id) # fetch the order and compute totals Reply.status(“calculated”, total) end < reply status=“calculated”> <result>169.58</result> </ reply > 6 of 7
  7. 7. Demo 7 of 7 until properly open-sourced download Rails plugin and Flex libraries from: http://s3browse.com/explore/public.philemonworks.com send comments to: ernest.micklei @ qnh.nl Questions?

×