News for hackers. Stuff that matters.
Re:Why Rails 4 Live Streaming is a Big Deal by malandrew on Friday August 03, 2012 @01:13PM (#4334958)
Rails works just fine for REST, but you've forgotten the other side of this and that is the part of the framework that handles the javascript assets, i.e. Sprockets.

The difference between handling the single page app in Rails and node.js is night and day. Sprockets is a nightmare to deal with.

Re:Why Rails 4 Live Streaming is a Big Deal by PetrolMan on Friday August 03, 2012 @01:29PM (#4335055)
Please explain.

I've actually had a pretty good time dealing with Sprockets. There are the occasional deployment issues but the benefits tend to more than make up for any frustrations.

Re:Why Rails 4 Live Streaming is a Big Deal by malandrew on Friday August 03, 2012 @01:46PM (#4335154)
Problems:

(1) Slow

(2) Sprockets' C-style require directives because the people working with ruby don't want to get their hands dirty with crawling the javascript AST and parsing out commonjs or even Harmony-ES module system requires.

(3) Incompatibilities between various JS-focused gems because of sprockets issues. Getting Require.js to work took a long time and then it took a lot longer to get the require.js gem to work with jasmine.js, and even then it ended up being a jerryrigged approach.

In general, sprockets is a mess with respect to Javascript handling versus what you can do in node.js.

Re:Why Rails 4 Live Streaming is a Big Deal by bascule on Friday August 03, 2012 @01:30PM (#4335064)
It's pretty slow, among other things
Re:Why Rails 4 Live Streaming is a Big Deal by bascule on Friday August 03, 2012 @01:24PM (#4335032)
Nobody's forcing you to use Sprockets. You can use e.g. rake-pipeline instead