News for hackers. Stuff that matters.
Re:Rails Has Turned into Java by calinet6 on Wednesday February 20, 2013 @03:02PM (#5252911)
"... Java, have you learned to easy yet?"

No, it hasn't. That's why we're using Rails.

And to be honest, it ain't that bad.

Re:Rails Has Turned into Java by taligent on Wednesday February 20, 2013 @03:06PM (#5252942)

   "... Java, have you learned to easy yet?"
Try Play, Grails, Vert.X.

And you know what it isn't easy. Having to deal with Ruby's dependency nightmares.

Re:Rails Has Turned into Java by tmo9d on Wednesday February 20, 2013 @03:38PM (#5253179)
Right, and I'm calling Grails, Play, Scala, Vert.x Java in that article I wrote. I think a lot of Rails folks walked into a closed box in 2008, and they should have. Rails was hugely different from the alternatives back then.

The world has caught up. That's one of the points I didn't quite make very well. Ugh.

Re:Rails Has Turned into Java by calinet6 on Wednesday February 20, 2013 @04:42PM (#5253562)
That makes sense. The landscape has definitely changed, and you're right, there are alternatives now that didn't exist when Rails was just starting.

I think Rails still has some advantages, and a head start in both development concepts and supporting libraries and frameworks. My point wasn't that Java and its kin are necessarily incapable of these things, just that Rails has had that mindset from the start, and as such deserves the mindshare that it receives.

Re:Rails Has Turned into Java by spellboots on Wednesday February 20, 2013 @03:08PM (#5252962)
Dependency management in ruby is trivial with bundler.
Re:Rails Has Turned into Java by tmo9d on Wednesday February 20, 2013 @03:52PM (#5253259)
Oh I disagree entirely. After having spend two days debugging someone's versionless Gemfile / bundler problem on my CI server, I want someone to pay for my pain.
Re:Rails Has Turned into Java by jbail on Wednesday February 20, 2013 @04:08PM (#5253375)
That's not Bundler's fault. It's the fault of the person who made the versionless Gemfile.

There's really no comparison between using Bundler and mucking around with JAR files or Ant scripts in Java. I've even seen Python codebases with a Java-esque rats nest of dependencies that are just as painful to get setup correctly.

Bundler is way easier. I've never been on a Rails project where it took more than 30 minutes to get the env setup and it's in large part, thanks to Bundler. Admittedly, I haven't touched Java in a few years, but last I checked, Java had nothing like Bundler (which is a shame, because it could really use it).

Re:Rails Has Turned into Java by squidsoup on Wednesday February 20, 2013 @04:16PM (#5253430)
Maven and POM files are the standard way of managing dependencies in Java projects. Maven's more complex than bundler, but reasonably easy to use as it is very convention oriented.
Re:Rails Has Turned into Java by tmo9d on Wednesday February 20, 2013 @04:19PM (#5253450)
Hey, don't forget Gradle - http://www.gradle.org - Gradle syntax for declaring dependencies is similar to Maven.

But there's a very close comparison between Bundler and managing dependencies with Maven or Gradle. And there's a huge difference. Maven Central has never been compromised because they have a secure method for deploying artifacts, RubyGems? You've had a fun month with RubyGems, right?

Re:Rails Has Turned into Java by jbail on Wednesday February 20, 2013 @04:42PM (#5253563)
If you are going to base your argument on a one-time security vulnerability in RubyGems, then I'm just going to get out of your way and let you troll on.
Re:Rails Has Turned into Java by taligent on Wednesday February 20, 2013 @04:21PM (#5253456)
If you are using Play or Grails then dependency management is handled almost identically to bundler.

If not then Ivy is what is used mostly albeit far less elegantly.

Re:Rails Has Turned into Java by taligent on Wednesday February 20, 2013 @03:14PM (#5253002)
For small, single apps sure.

But if you have large apps with multiple Ruby versions then dealing with rvmrc, bundler and gem incompatibilities is a nightmare.

Java's forward compatibility is a lot more robust.

Re:Rails Has Turned into Java by damoncali on Wednesday February 20, 2013 @04:55PM (#5253629)
But if you have large apps with multiple Ruby versions then dealing with rvmrc...

Why on earth would you do that?

Re:Rails Has Turned into Java by jdminhbg on Wednesday February 20, 2013 @04:47PM (#5253583)
You have an app with multiple Ruby versions?
Re:Rails Has Turned into Java by taligent on Wednesday February 20, 2013 @05:52PM (#5253944)
Yes. I take it you've never worked at an enterprise company before ?

Every time a new developer comes on board they just love to add new technology X and then in the years to come other developers add Y and so on. Of course there are developers who have to manage this.

Re:Rails Has Turned into Java by calinet6 on Wednesday February 20, 2013 @10:06PM (#5255110)
Enterprise company? Ha. Just try dealing with three different decade-old JVM versions once. You'll pray for bundler.
Re:Rails Has Turned into Java by rsyntax on Wednesday February 20, 2013 @05:12PM (#5253720)
What use case is there for "multiple Ruby versions" within the same app?
Re:Rails Has Turned into Java by saryant on Wednesday February 20, 2013 @03:31PM (#5253132)
I've been using Play every since 2.0 came out and I'm a huge fan. It's just fun to work with.
Re:Rails Has Turned into Java by squidsoup on Wednesday February 20, 2013 @04:33PM (#5253513)
Are you using Java or Scala with Play 2.0? Play looks like an excellent framework, but my perception is that Play 2.0 is very Scala oriented. Scala seems a bit daunting.
Re:Rails Has Turned into Java by saryant on Wednesday February 20, 2013 @09:31PM (#5255010)
I'm using it with Scala. My understanding is that Play can be used without writing any Scala whatsoever.

That said, you can start with Scala as "better Java" and ramp up to its advanced features. That's how I began. At first you're just replacing for-loops with map/reduce, eventually you'll start passing around implicit variables and using for-comprehensions all over the place.