Giter Club home page Giter Club logo

ember-rails-demo's Introduction

Ember Rails Demo

Using Ember.js, evaluate the following:

  • Simple form CRUD
  • Routing of resources - nested, with nav, pagination
  • Associations - has_many, belongs_to
  • Rails idiom and integration - shouldn't be an impedance mismatch
  • Data binding - views change automatically when data does
  • View Composition - weak, strong...just get it done
  • No Framework Poison Pills - that would be bugs and things that would jeopardize a production app
  • HAML/Coffeescript Friendly

Implementation Notes:

  • Serialization of JSON is done via Active_Model_Serializers. Currently requires a "scope" (that is, current_user-like object), hence the anemic user inclusion.
  • Pusher token expired.

Awesomeness:

  • Data Binding is awesome, though the Metamorph implementation seems extremely obtrusive (script tags surround template chunks).
  • View Composition is the best I've seen...think little widgets on the page each with their own "controller", epic. It is a gamechanger.

Issues:

  • Routing is a nightmare with the state machine implementation. It is verbose and seems to put controller level concerns in the router. Of course, that's probably my MVC paradigm. Thinking of a giant state machine for a prod level app (57 lines for two resources) seems unpleasant.
  • Associations through Data were buggy. Gave me unease. It's alpha at the time of writing, will be better at 1.0. Side-loading didn't do what I expected (made repeat requests though the serializer was passing the data in the right format, or so I thought)
  • Handlebars is the template of choice, as is pure JS. Had issues getting Coffeescript to do the .property binding syntax (which I know is silly...js2coffee => exception)
  • Debugging was exceedingly difficult compared to the other frameworks I've used, mostly due to the run loop and state machines.
  • All these issues were being worked on at the time of writing

Summary:

  • Ember was not easy to figure out. It's MVC paradigm may be more authentic but a Rails developer will be completely confused by it. An up to date guide from Core is needed (and in the works) to get Rails developers up to speed. Specifically on best practices and how separation of concerns is supposed to look between state/router, views, and controllers.
  • I plan to look at it again when it is a bit further down the road. It's view composition keeps bringing me back (as well as the strong Rails-core support).
  • More info can be found on the blog.

ember-rails-demo's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.