Your SlideShare is downloading. ×
0
JavaScript Applications on top of Ruby on Rails
JavaScript Applications on top of Ruby on Rails
JavaScript Applications on top of Ruby on Rails
JavaScript Applications on top of Ruby on Rails
JavaScript Applications on top of Ruby on Rails
JavaScript Applications on top of Ruby on Rails
JavaScript Applications on top of Ruby on Rails
JavaScript Applications on top of Ruby on Rails
JavaScript Applications on top of Ruby on Rails
JavaScript Applications on top of Ruby on Rails
JavaScript Applications on top of Ruby on Rails
JavaScript Applications on top of Ruby on Rails
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

JavaScript Applications on top of Ruby on Rails

3,284

Published on

Slides of my talk a the Ruby User Group Berlin on March 1st, 2012 …

Slides of my talk a the Ruby User Group Berlin on March 1st, 2012

You may easily download the slides as PDF here:
http://molily.de/assets/rugb.pdf

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

No Downloads
Views
Total Views
3,284
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
20
Comments
0
Likes
2
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • Transcript

    • 1. JAVASCRIPT APPLICATIONS ON TOP OF RAILS Mathias Schäfer (9elements) Ruby User Group Berlin
    • 2. CHAPLINhttps://github.com/moviepilot/chaplin
    • 3. CHAPLIN A JavaScript Application Architecture on top of Backbone.js MVC, Mediator & Publish/SubscribeConvention over Configuration & DRY RequireJS / AMD
    • 4. MOVIEPILOT.COM Discover Movies First
    • 5. MOVIEPILOT.COMA spin-off targeting the international (English-speaking) marketWhole new concept compared to Moviepilot.deSingle-Page-ApplicationHTML templating, login etc. on the clientFat Client, Slim Application Server
    • 6. SINGLE-PAGE APPSLook & Feel of an AppSnappy user interfaceMuch client-side interactionAjax polling and Websockets pushingAlternatives: read DHH on Basecamp (bit.ly/xGADFJ)
    • 7. moviepilot.com JavaScript App moviepilot.com Rails app Edward Rails JSON API Sheldon MySQL Neo4J on jRuby
    • 8. RAILS FOR JAVASCRIPT APPSRails is an excellent platform to deliver JavaScript applicationsRails Asset Pipeline: “Fast by default”Compilation & Packaging of CoffeeScript, Sass/Compass
    • 9. DUAL-USE APISRails is an excellent choice for JSON APIsQuery them from other (Rails) componentsor directly from the clientProper URLs and search-engine accessibilityRender a minimal page on the server,then load the JavaScript app on top
    • 10. LEARNING FROM RUBY FRAMEWORKSBuilding a proper MVC architecture on top of Backbone.jsBackbone.js is minimalistic and its MVC approach is… funkyLearn from Rails Routing (routes.rb) and Controllers (actions,params)Of course client-side MVC ist not the same, e.g. REST/CRUDworks differentlyDuplicate stack: MVC on server – MVC on client
    • 11. RB + JS = <3Rails has made tremendous efforts to support JavaScriptapplication development (Rails Asset Pipeline, CoffeeScript…)ECMAScript 6 will borrow several ideas of the Ruby languageRuby developers, embrace JavaScript!JavaScript developers, embrace Ruby!
    • 12. THANKS!@molily on Twitter and Githubhttp://molily.de/http://9elements.com/http://moviepilot.com/https://github.com/moviepilot/chaplin

    ×