Earlier quoted context omitted.
The release notes for Django 1.4, for example, list support for both Time Zones and Selenium. Time Zones were added to Rails 2.1 in 2008. selenium-on-rails also debuted in 2008. Does it not seem strange to you that it took 4 years after Rails for Django to get these features?
Really, if you wanna complain about something that's in Rails and not in Django properly, talk about database migrations.
Why critics of Rails have it all wrong (and Ruby's bright multicore future)
121–127 of 127 posts
Re: Why critics of Rails have it all wrong (and Ruby's bright multicore future)
#122I agree a lot with this but it contains its own absolutely huge non-sequitur: How on earth is Cramp an example of damn simple websockets in Rails? It's Ruby, not Rails. It's also probably worth mentioning that it literally only works with Thin, is unmaintained, largely undocumented, and that the latest master on GitHub doesn't actually work. Not really the best example to pick!
Cramp is based on Rack, just like Rails... there is nothing stopping you from using the two in conjunction.
Re: Why critics of Rails have it all wrong (and Ruby's bright multicore future)
#123Earlier quoted context omitted.
The release notes for Django 1.4, for example, list support for both Time Zones and Selenium. Time Zones were added to Rails 2.1 in 2008. selenium-on-rails also debuted in 2008. Does it not seem strange to you that it took 4 years after Rails for Django to get these features?
Really, if you wanna complain about something that's in Rails and not in Django properly, talk about database migrations.
Re: Why critics of Rails have it all wrong (and Ruby's bright multicore future)
#124Earlier quoted context omitted.
I absolutely agree with you. What sticks in my craw is the oft-repeated mantra that "Rails is too heavy" or the perception that Sinatra is doing something that Rails isn't. When you look at Rails as a collection of middlewares (which you can choose!) and support libraries (require 'rails/all' may not be needed!), instead of looking it as a monolithic black box that can't be configured to fit your needs, it's suddenly…
I guess I got the wrong impression from your argument. It all depends on what you are trying to accomplish, as you say.
Re: Why critics of Rails have it all wrong (and Ruby's bright multicore future)
#125"Rails is great for JSON APIs" Rails is good for simple APIs (especially adding an API to an existing HTML site). However, if you want to do more than that, elegantly - it isn't great yet. You quickly end up with some fairly messy serialization hacks and confusion between what should sit in the controller and the model. The active_model_serializers gem is a really good start, but there is a way to go to get to the le…
Use decorators. Draper is my personal favorite, and it very cleanly solves the issue of serialization nightmares and controller/model confusion. (I hope that it ends up in the Rails core someday, because it really is a gamechanger in how Rails is used for non-HTML content!)
Re: Why critics of Rails have it all wrong (and Ruby's bright multicore future)
#126"Modern HTML5/JS apps depend on beautiful, consistent RESTful JSON APIs." "Rails is great for JSON APIs." "Many of these companies have client-heavy HTML5/JS applications which consume a JSON API coming out of Rails. Many of them have APIs that are routinely cited as archetypical RESTful JSON APIs." Rails is great for JSON RPC over HTTP. It's not great for beautiful, consistent RESTful APIs. It still lacks basic supp…
Re: Why critics of Rails have it all wrong (and Ruby's bright multicore future)
#127Earlier quoted context omitted.
Node is no panacea, but that's not quite true about stable APIs. npm is great about maintaining separately versioned libraries and reducing conflicts. In your package.json can specify what version of a library to use and npm mostly figures it out for you. For instance, I'm still intentionally using an older version of Express (2.5.9 instead of 3.0.x) and npm hasn't had a problem figuring out deps. Part of the reason…
sure, but, if you chose to upgrade to Express 3.0.0, would your application still work? or are all the method signatures in Express 3 different from Express 2.5 ?