News for hackers. Stuff that matters.
Re:Rails Has Turned into Java by adventureloop on Wednesday February 20, 2013 @03:17PM (#5253026)
I know it is not the mode to comment to mention your own up vote.

Rails might have deteriorated in ease of use, but I cannot imagine it being worse than Java EE was in 2004. Modern Java EE is a world of pain, even simple apps are difficult to build. The entire front end stack is antisocial, difficult to extend and anachronistic.

I don't think anyone working with a modern java web stack could read this post about rails 'being like java' without a dark chuckle.

Re:Rails Has Turned into Java by jules on Wednesday February 20, 2013 @03:51PM (#5253257)
Rails is now like Java EE because it is no longer better than the competition. It's not that Rails got worse. Perhaps in simplicity it did get worse a bit, but overall Rails now is much better than Rails then. The thing is that the competition got a lot better too. The baseline changed.

I don't think the thing that will be to Rails as Rails was to Java EE exists yet though. The competition has merely caught up, perhaps a little ahead on some fronts and a little behind on others. But there is nothing that is clearly much much better. Things like Meteor and Opa are a step in the right direction, but they don't go far enough (yet).

Does anybody remember this video: https://www.youtube.com/watch?v=Gzj723LkRJY

This is not the original Rails video, it's the second one I think, but they're fairly similar (couldn't find the original). Back then when I saw the first Rails video I remember finding it amazing. Now it's just boring.

Re:Rails Has Turned into Java by jshen on Wednesday February 20, 2013 @05:05PM (#5253689)
I have yet to see any competition that is better. What do you think is better?
Re:Rails Has Turned into Java by jules on Wednesday February 20, 2013 @05:21PM (#5253774)
Surely you don't think that Rails is better than everything else in every single respect? There are plenty of frameworks that are simpler (Flask/Sinatra), faster (Play, etc.), support lightweight concurrency better (node.js based, Play too, etc.), have much better IDE support (ASP.NET MVC), support client/server partitioning (Meteor/Opa), and so forth.
Re:Rails Has Turned into Java by jshen on Wednesday February 20, 2013 @08:31PM (#5254761)
What you just said is very different from the first sentence of the comment I replied to. Let me repeat it, "Rails ... is no longer better than the competition."

I think rails is better than the competition if my goal is to make fairly standard websites. It would be a rare exception where I think something else is more suitable.

Re:Rails Has Turned into Java by jules on Thursday February 21, 2013 @07:13AM (#5256946)
"No longer better than the competition" doesn't mean "Worse than the competition for ALL use cases".

The thing is these frameworks have caught up so much on the expressiveness front that their other advantages can easily start to outweigh the small advantage that Rails has there. But if you are building a low traffic CRUD site (like most sites), then yeah use Rails. If you are building say a chat application, I wouldn't use Rails.

Re:Rails Has Turned into Java by jshen on Thursday February 21, 2013 @11:25AM (#5258309)
The dismissive use of "low traffic" bothers me. We made http://disney.com on rails, it runs off a couple of VMs, is really fast, and serves a significant amount of traffic. Can you quantify what you mean by low traffic?
Re:Rails Has Turned into Java by jules on Thursday February 21, 2013 @06:25PM (#5261346)
I didn't mean to imply that building a high traffic site in Rails is not a good idea, merely that low traffic is its sweet spot. If you have high traffic it might make financial sense to forgo some productivity and choose a framework that can run on lower amounts of hardware. This also depends on many other factors. For example if your content is low write high read, i.e. highly cacheable, that can make any difference pretty much disappear.
Re:Rails Has Turned into Java by jshen on Thursday February 21, 2013 @10:31PM (#5262414)
Let me try to be more specific. If we consider the space of web development, I think you are implying that rails sweet spot is a small portion of that space. I feel strongly that a very large portion of the entire web dev space is within rails sweet spot. I think I can back this up, as I did once already with http://disney.com as an example.

"If you have high traffic it might make financial sense to forgo some productivity and choose a framework that can run on lower amounts of hardware"

I've worked on numerous sites that are in the top 1000 traffic wise according to alexa. I never once felt that it was worth moving them off of rails/ruby. You are probably talking about the top 0.01% of sites or even lower than that.

Re:Rails Has Turned into Java by jules on Friday February 22, 2013 @05:41AM (#5263667)
> I think you are implying that rails sweet spot is a small portion of that space.

No, certainly not! I think Rails is fine for 99% of web sites, and probably the framework that has the highest percentage of sites where it would be my top choice. But Play is also fine for lets say 98% of web sites. Rails even works fine for things like chat applications, but there it would not be my top choice (at least not for the component that serves the messages). That's all I'm saying. Rails is my favorite framework, I just don't think that it is better than everything else in every respect.

You are probably looking at this from a different perspective. Of course it's not worth moving an existing site off Rails if it is already done, or when you'd have to learn a completely new language and framework to do it. But if you are at the start of a project, and you already know e.g. Scala and Play, the situation may be different.

Re:Rails Has Turned into Java by currywurst on Wednesday February 20, 2013 @04:24PM (#5253476)
Have you tried Java EE 6 ? JAX-RS in particular is a splendidly designed api for RESTful services. And then you can make single page apps instead of JSF. This method is even going have ide support in Netbeans 7.3 with wizard-driven Backbone/Angular app generation.
Re:Rails Has Turned into Java by mbell on Wednesday February 20, 2013 @05:04PM (#5253679)
JAX-RS is really nice for building APIs and I actually prefer the way it works to Sinatra, especially if using it with Groovy.

But, this isn't Sinatra vs EE6, its Rails vs EE6, so its not a proper comparison.

To compare with Rails you've got to look at other parts of EE6: JSF + CDI + JPA, which is an awful mess. JSF by itself is enough to kill its usability for many modern applications, the amount of state JSF carries around is ridiculous.

Re:Rails Has Turned into Java by markokocic on Wednesday February 20, 2013 @05:19PM (#5253765)
The article said Java, not JEE. In Java land, the choice is much broader than JSF or JPA. The main problem that people bashing Java had was always that it offered too many choices. Ruby had Rails while Java had JSF, Struts, Struts 2, Tapestry, Wicket, Play. Rails had ActiveRecord, while Java had JDBC, Hibernate, MyBatis, OJB, EJB 1/2/3, JPA.
Re:Rails Has Turned into Java by tmo9d on Wednesday February 20, 2013 @05:57PM (#5253967)
Ah, watch out for JSF, it's a dangerous place. JPA on the other hand is surprisingly good these days try Spring 3 Oliver Gierke has done good things.
Re:Rails Has Turned into Java by mbell on Wednesday February 20, 2013 @06:16PM (#5254043)
JPA is fine, if and only if you've got a framework managing the entity manager lifecycle for you in a reasonable way.

In my opinion if I need an entire separate framework (or container) to manage it, I think its broken. I've switched to Ebean for Java ORM and am vastly happier now.

JPA also gets the award for the worst programmatic query building API I've ever seen. As a result it seems like the majority of people just use JPQL strings which is really annoying as its also SQL but not quite SQL.

Re:Rails Has Turned into Java by adventureloop on Wednesday February 20, 2013 @05:02PM (#5253672)
The most painful component of Java EE development for me is definitely the JSF side of things. Without building anything substantial with JAX-RX I cant really comment. REST and a rich frontend, JS based would be my choice. The sad truth is that I live in a world where usable is beaten out by sellable.
Re:Rails Has Turned into Java by TylerE on Wednesday February 20, 2013 @05:51PM (#5253934)
Lots of real world apps don't compose nicely down to a bunch of REST bullshit.
Re:Rails Has Turned into Java by slurgfest on Wednesday February 20, 2013 @09:08PM (#5254912)
Why not, specifically?
Re:Rails Has Turned into Java by TylerE on Wednesday February 20, 2013 @10:24PM (#5255165)
Complicated business logic, validation outside of a single object, workflows...
Re:Rails Has Turned into Java by slurgfest on Thursday February 21, 2013 @02:55PM (#5259835)
Can you be specific on how this is incompatible with RESTful bullshit?
Re:Rails Has Turned into Java by lkrubner on Wednesday February 20, 2013 @03:35PM (#5253149)
I think the point is, other systems have now emerged that can reasonably claim to represent the cutting edge of simplicity and ease. Rails held that distinction for several years, it was the reference point people used to criticize or praise other systems. But Rails is no longer the clear leader in ease of use or sophistication of 3rd party libraries. In response to Rails, lots of new languages and frameworks emerged, all of which offer a lot of new ideas about what the cutting edge is in 2013.
Re:Rails Has Turned into Java by douglasisshiny on Wednesday February 20, 2013 @04:00PM (#5253322)
I don't doubt that this is the case, but can you mention some of the language / frameworks which have done this?

(I'm not being critical; I'm really just curious and would like to learn about different frameworks).

Re:Rails Has Turned into Java by aantix on Wednesday February 20, 2013 @03:56PM (#5253288)
Curious, what other web dev frameworks offer a unified stack (ORM, deployment, dependency management, testing, project structuring)?
Re:Rails Has Turned into Java by Thieum22 on Wednesday February 20, 2013 @04:07PM (#5253370)
ASP.NET MVC + Entity Framework + NuGet could be a candidate. At least it's going in this direction.
Re:Rails Has Turned into Java by programminggeek on Wednesday February 20, 2013 @04:37PM (#5253536)
Offering all of those things is nice, but tightly coupling them all together is where Rails goes wrong many/much of the time.
Re:Rails Has Turned into Java by jshen on Wednesday February 20, 2013 @10:17PM (#5255148)
Many of them aren't tightly coupled. In fact, I'd say rails is better on this front than anything comparable. Is it easier to use Mongo with Rails or Django? What about couchbase? Rails makes it very easy to make an ORM work well with rails and to replace ActiveRecord with it.

Better yet, what framework do you believe offers all of these things and does a significantly better job at decoupling than rails?

Re:Rails Has Turned into Java by taligent on Wednesday February 20, 2013 @04:16PM (#5253428)
Play and Grails are two on the Java side.
Re:Rails Has Turned into Java by jshen on Wednesday February 20, 2013 @05:08PM (#5253702)
It's been a while since I looked at grails, but it was clearly worse when I looked. Some examples, rendering an action as json, XML, or HTML. Using mongo. Etc.