/coffeescript-in-rails-examples

Repo with examples for fs learning days

Primary LanguageRuby

Coffeescript in rails examples

Branch coffeescript-examples

  • Step 0: initial awful jquery code
  • Step 1: refactor code using coffeescript classes
  • Step 2: use separate files, introduce components
  • Step 3: use ui object for ui elements
  • Step 4: use namespaces for components
  • Step 5: use ".js" classnames as references in components

Branch coffeescript-examples-jquery-widgets

  • Step 6: try jquery widgets as Coffeescript classes alternative

Branch coffeescript-examples-backbone

  • Step 6: try Backbone.View