FutureDev / Love'Script

953 views

Published on

Delivered at Newcastle Ruby Group on 20th July 2011. Brief overview of the rise of JavaScript in web development and how backbone.js will allow Rails developers to use JavaScript without ditching Rails.

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

  • Be the first to like this

No Downloads
Views
Total views
953
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
6
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

FutureDev / Love'Script

  1. 1. Why CoffeeScript?<br />
  2. 2. FutureDev / Love’Script<br />
  3. 3. TheFutureof Web Development:<br />Learn to love<br />/(Coffee|Java)script/<br />
  4. 4. The Future of Web Development:<br />Learn to love<br />/(Coffee|Java)script/<br />
  5. 5. This presentation IS<br />High-level<br />Theory & Trends<br />Ambivalent to CoffeeScript<br />About Rails & JavaScript<br />
  6. 6. This presentation IS NOT<br />In depth<br />An intro to CoffeeScript<br />Starting a flame war<br />
  7. 7. The WebDev Landscape<br />
  8. 8. Rails <br />Models<br />Heavy lifting<br />Controllers & Routing<br />Calling the shots<br />Views<br />Looking good<br />
  9. 9. AJAX before Rails 3 <br />Just let Rails do it’s thing<br />ActionView::Helpers::PrototypeHelper<br />_remote_ Control<br />
  10. 10. AJAX after Rails 3 <br />GET OUTA’ MY FACE!<br />Unobtrusive JavaScript with jQuery<br />ActionView::Helpers::JavaScriptHelper<br />Go roll your own…<br />
  11. 11. Can we do THAT?!<br />But Facebook does it, it can’t be that hard.<br />Ohhh, just add that.<br />And that….<br />And that…..<br />Awesome.<br />
  12. 12. Convoluted Code <br />You just cooked yourself up some spaghetti.<br />JS becomes unmaintainable<br />You start playing Jenga with code<br />You hate it<br />
  13. 13. There MUST be a better way<br />Sproutcore?<br />Cappuccino?<br />Uki?<br />Qooxdoo?<br />GWT?<br />But that all goes away from Rails.<br />
  14. 14. It’s all JavaScript <br />JavaScript runs in the client/browser<br />It’s is incredibly fast<br />It can run on the server<br />BUT if you’re building on Rails, you have to duplicate all your domain logic.<br />
  15. 15. Web Development Sucks<br />“The core of the problem revolves around the most exciting domain in web application development today: Javascript. The explosion of Javascript has given rise to amazing applications of stellar quality for quite some time now, but I see them coming only from teams with gobs of time and expertise.”<br />http://harry.me/2011/01/27/today-web-development-sucks/<br />
  16. 16. The next DHH?<br />“I see an opportunity for <br />the next DHH to rise.”<br />
  17. 17. What about DHH?<br />
  18. 18. JavaScript Framework?!Yes Please. <br />
  19. 19. Basecamp Mobile <br />CoffeeScript in Rails 3, April<br />
  20. 20. Cinco<br />Backbone.js (JS MVC)<br />Zepto (Lightweight DOM lib)<br />Eco (Templating)<br />Stitch (Dev, Testing, Compilation)<br />
  21. 21. Peepcode launch 3-part series<br />
  22. 22. ThoughtBot get involved <br />
  23. 23. $39<br />

×