You are not just picking a language : Follow up on “From Java to Ruby” post

Monday’s post about a transition  from Java to Ruby did trigger a nice discussion, and I wanted to come back on it.

First of all, I want to thank all contributors, both here and on Hacker News - I was afraid to (re-)ignite an already long religion war, and in place got polite and educated comments or advices. Keep it going!

One of the most frequent advice or question was about Groovy and or Grails as “natural” choices coming from a Java background. I both agree and disagree, and wanted to elaborate somewhat on the answers we’ve already given.

The agree/disagree line is essentially about where you are on two axis.

Existing shop vs New shop

Taking technical decisions when you are (part of) an existing company is very different to the situation where you are creating something new. Especially if this “something” is a startup made of a tight group of like-minded people.

As an existing shop, you cannot evaluate a technology only on its own technical merits, however great they may be. You have to take the existing situation into account, and this “situation” is many fold:

  • Applications: Your existing applications, whether in development or maintenance
  • Tools: The toolset you use, from the IDE to the monitoring.
  • People: Your developers skilled in the above.

In those situations, path allowing gradual evolutions will often be preferable. This do not means that you can never change, only that you have many elements to take into account.

Back on the stated “problem”, I think that Groovy is a really great option for existing Java shops that want or need to put some dynamic “salt” in their development. It allows them to decide where and how to apply this, it can be done on existing applications and keeping the same set of libraries and tools – which are one of Java strongest points in my opinion.

Pick a language vs Pick a platform

Picking a language is only a small part of picking a platform. With the coupling between those two slowly eroding (you can code in Python and Ruby on iOS and on the JVM, you can use JavaScript for your server, etc…), they are progressively becoming two separate (if not independents) choices.

Picking a platform means of course a language and running environment, but also tool (including the IDE), libraries ecosystem and (perhaps more important even) a community. Forums, blogs, advices, opinions, documentations, wars and others. This is way more than just a language.

Again, if you have a pre existing investment on any given platform, let say the JVM, when picking a dynamic language, you would be well advised to choose one that can run on it, making the transition much more easier (hey, it’s a war, your release team already knows how to deploy those!). Fortunately, you do not exactly lack choice.

Reciprocally, picking Scala (for example) is not just a language choice. It’s also a platform choice (the JVM or the CLR in this case).

Conclusion

As a final (for now) note about Groovy, I think it is a fine language, and from my very limited exposure to it, Grails looks like a very nice framework. But even with qualities going over being just “A Rails-like framework running on the JVM”, I do not think its ecosystem and community to be on par with the one of Rails (based on a very detailed survey involving subjective experience and random google queries). It is by no means a judgement on quality, just something that matters to us for reasons evoked before.

To come back to our own situation, I may have personally a Java background, but at the moment we evaluated Python/Django and Ruby/Rails, 8th color was certainly not a Java shop – it was going to be what we decided to make it. With quite diverse backgrounds (yes, you can have “diverse” background with only two people, especially if one of them is Christophe), it was really about picking the right platform for us and for Sybil, without any “existing situation” (outside of our existing set of skills).

We did go for Ruby and Rails (and RSpec, d3, Antlr, Grit, jQuery, Sprocket, Saas, Capistrano and many others), and are quite happy with our choices so far.

Enhanced by Zemanta




3 thoughts on “You are not just picking a language : Follow up on “From Java to Ruby” post

  1. Mark Thomas

    Why settle for “a Rails-like framework on the JVM” when you can run Rails on the JVM? :) JRuby is an excellent platform for Rails.

    Reply
    1. Martin Post author

      Mark,
      Making our Rails application run on the JVM is an option that we are aware of. And I agree with you, it is becoming better and better (I’m following the works of Charles Nutter closely).

      Martin

      Reply
  2. shipra

    Hello, sir i would like to ask that what is the scope of java training, what all topics should be covered and it is kinda bothering me … and has anyone studies from this course http://www.wiziq.com/course/1779-core-and-advance-java-concepts of core and advance java online ?? or tell me any other guidance…
    would really appreciate help… and Also i would like to thank for all the information you are providing on java concepts.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>