• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
JS Tooling in Rails 3.1
 

JS Tooling in Rails 3.1

on

  • 598 views

 

Statistics

Views

Total Views
598
Views on SlideShare
588
Embed Views
10

Actions

Likes
0
Downloads
2
Comments
0

3 Embeds 10

http://www.linkedin.com 5
http://us-w1.rockmelt.com 3
http://a0.twimg.com 2

Accessibility

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    JS Tooling in Rails 3.1 JS Tooling in Rails 3.1 Presentation Transcript

    • JavaScript Tooling In Rails 3.1 And how you should be doing it...Saturday, November 12, 2011
    • @dudadornellesSaturday, November 12, 2011
    • Saturday, November 12, 2011
    • Saturday, November 12, 2011
    • 9f09aeb8273177fc2d09ebdafcc76ee8eb56fe33Saturday, November 12, 2011
    • Saturday, November 12, 2011
    • http://gastronomous.files.wordpress.com/2010/03/img_6226.jpg http://jashkenas.github.com/coffee-script/Saturday, November 12, 2011
    • math = root: Math.sqrt square: square cube: (x) -> x * square x math = { root: Math.sqrt, square: square, cube: function(x) { return x * square(x); } };Saturday, November 12, 2011
    • Saturday, November 12, 2011
    • Saturday, November 12, 2011
    • Saturday, November 12, 2011
    • + .JS =Saturday, November 12, 2011
    • Saturday, November 12, 2011
    • Insert broken build picture hereSaturday, November 12, 2011
    • class Ninja constructor: (@numOfShurikens) -> throwShuriken: -> @numOfShurikens-- class Ronin extends Ninja constructor: (numOfShurikens) -> super numOfShurikens+1 #ronins know to carry a spareSaturday, November 12, 2011
    • Debugging... :(Saturday, November 12, 2011
    • http://getsprockets.orgSaturday, November 12, 2011
    • .JS Your entire application .JS .JS .JS .JS .JS .JSSaturday, November 12, 2011
    • .task.js.coffee window.MyApp = window.MyApp || {} class Task constructor: (@description) -> @save: (task) -> ... window.MyApp.Task = Task .task_controller.js.coffee #= require task window.MyApp = window.MyApp || {} Task = window.MyApp.Task class TaskController create: (description) -> Task.save(new Task(description))Saturday, November 12, 2011
    • +Saturday, November 12, 2011
    • .coffee .coffee .coffee .coffee .coffee .coffee .coffeeSaturday, November 12, 2011
    • .coffee .coffee .coffee .coffee .coffee .coffee .coffee Single ClassSaturday, November 12, 2011
    • Saturday, November 12, 2011
    • DOM Interactions .coffee .coffee .coffee .coffee .coffee .coffee .coffee Domain/Business LogicSaturday, November 12, 2011
    • Saturday, November 12, 2011
    • COWBOY?Saturday, November 12, 2011
    • http://pivotal.github.com/jasmine/Saturday, November 12, 2011
    • describe Math, ->   describe fib, ->     it should calculate the numbers correctly up to fib(16), ->       fib = [0, 1, 1, 2, 3, 5, 8, 13]       expect(Math.fib(i)).toEqual fib[i] for i in [0..7] describe Math do   describe fib do     it should calculate the numbers correctly up to fib(16)       fib = [0, 1, 1, 2, 3, 5, 8, 13]       (0..7).map { |n| Math.fib(n) }.should == fib end end endSaturday, November 12, 2011
    • DOM Interactions .coffee .coffee .coffee .coffee .coffee .coffee .coffee Domain/Business LogicSaturday, November 12, 2011
    • DOM Interactions .coffee .coffee .coffee spec spec spec .coffee .coffee .coffee spec spec .coffee Domain/Business Logic specSaturday, November 12, 2011
    • DOM Interactions ? .coffee .coffee .coffee spec spec spec .coffee .coffee .coffee spec spec .coffee Domain/Business Logic specSaturday, November 12, 2011
    • TDDSaturday, November 12, 2011
    • Standard?Saturday, November 12, 2011
    • + + =Saturday, November 12, 2011 ?
    • https://github.com/bradphelan/jasminerice https://github.com/pivotal/jasmine/tree/1.2.rc1 https://gist.github.com/673967 - GuardSaturday, November 12, 2011
    • Saturday, November 12, 2011
    • Saturday, November 12, 2011
    • +Saturday, November 12, 2011
    • Saturday, November 12, 2011
    • Thanks! :)Saturday, November 12, 2011