[LRUG] Which JavaScript framework?
George Ornbo
george at shapeshed.com
Tue Nov 27 04:51:33 PST 2012
On Tue, Nov 27, 2012 at 12:00 PM, Riccardo Tacconi <rtacconi at gmail.com>wrote:
>
> My question is: which one to choose?
>
If you are creating CRUD views onto a traditional RESTy Rails app
Backbone.js is a good tool for the job IMHO. Ember.js has more features but
l favour code readability over magic.
> The simplest solution would be to use the Meteor framework, which makes
> easy to write an app using Javascript client and server side as they were
> just one thing... but I still love Ruby, at least for the backend.
>
The Rails API project recently got some love
https://github.com/rails-api/rails-api. If your API is a traditional CRUD
type affair onto a relational database this is a great option. If you are
pushing data out to the browser Node.js is a much better fit IMHO with
libraries like socks.js and socket.io or services like pusher and pubnub.
Writing JSON APIs in node is also trivial since it is JavaScript. For
event-driven stuff full stack JavaScript beats Ruby for me.
*Ducks*
It is interesting that most JavaScript frameworks are
somewhat opinionated about MVC and communicating with a REST backend. In an
event driven web world (server-side JavaScript, websockets, socket.io,
pusher, pubnub) this at times seems a bit Old Skool to me. It will be
interesting to see if Rails responds to this too and ever breaks out of the
request response cycle.
--
George Ornbo
http://shapeshed.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20121127/871d6305/attachment.html>
More information about the Chat
mailing list