JRuby Great Addition To Java Development 51
An anonymous reader writes "JRuby combines the object-oriented strength of Smalltalk, the expressiveness of Perl, and the flexibility of the Java class libraries into a single, efficient rapid development framework for the Java platform. This article introduces JRuby, a sophisticated addition to your Java development toolbox."
So... work with me here.... (Score:2, Funny)
Time to cue the Java-is-slow/big/bloated crowd and s/Java/JRuby/, though.
Re:So... work with me here.... (Score:3, Informative)
I'm still wondering why we're seeing a story on this so long after it's release, when the likes of Rails [rubyonrails.org], one of the more exciting Ruby libraries in recent memory, gets completely ignored.
Of course, nobody here would really be interested in a powerful, easy way to develop web applications with practically zero configuration. It's just not *fun* without 800k of XML just to configure your ORM library
Re:Indeed - Hibernate beware... (Score:1)
While I am sure that it is nice for prototyping things quickly, it does not seem to be solving the same problem as Hibernate. For example, Hibernate does not require the user to extend a some sort of base class in order for a POJO to gain persistence, which some developers would perceive to be a huge benefit.
In
Re:Indeed - Hibernate beware... (Score:1)
Persona
Re:So... work with me here.... (Score:1, Funny)
AND WE CAN'T HAVE THAT SONNY! So just you keep that Rails business under your hat.
Why, I hear in Rails if you want to add a page to your web site, you just, uhm, create the file. What kind of madness is that! You gotta save the file, then edit an XML file to give the file a name string, then edit another XML file to associate a bean to the name string, then write a bean with getter and setter m
Re:So... work with me here.... (Score:2)
Re:So... work with me here.... (Score:2)
Yup, and since it's installable via a Ruby Gem [rubyonrails.org] it's easy to get it running.
> why we're seeing a story on this
I bet the O'Reilly folks would accept an article on Rails...
Re:So... work with me here.... (Score:2)
"released"
so long after it's released
other languages (Score:4, Informative)
For a larger view of the language development being done similar to this, take a look at List of Java virtual machine languages [robert-tolksdorf.de].
I should think that most people will find at least something that appeals to them.
So what exactly is the difference... (Score:1, Redundant)
Re:So what exactly is the difference... (Score:5, Informative)
The JRuby article is part of the alt.lang.jre [ibm.com] series, with announced articles about "Rhino [mozilla.org], Nice [sourceforge.net], and NetRexx [ibm.com], and many other exciting alternate languages for the JRE". It looks like the articles are coming in this order, one around the beginning of each month.
Re:So what exactly is the difference... (Score:2)
Momentum, I'd say (Score:1)
Groovy seems to have more momentum than JRuby, and to have had more work getting it properly debugged and so on. Again, I have not tried eithe
JRuby versus Java [code comparison - short] (Score:5, Funny)
Re:JRuby versus Java [code comparison - short] (Score:2)
Who knows.
Re:JRuby versus Java [code comparison - short] (Score:4, Funny)
Re:JRuby versus Java [code comparison - short] (Score:3, Informative)
When you have zero clue how to write the language, I suggest you shut up.
The equivalent Ruby is (sorry about the lack of indentation - Slashdot seems to eat it):
That's exactly one require-line and two blank lines more than your non-idiomatically-indented Java with missing newlines. It is one li
Re:JRuby versus Java [code comparison - short] (Score:3, Insightful)
*waves* hello, you must be new around here, *points at article* If you would like to read that while you wait, we call it reading the article.
I copy and pasted that code out of the article - I didn't make it up.
hint
The article was about JRuby.
And it wasn't a penis measuring contest, but a legibility contest. Now I can read java easier than JRuby because I read it daily. But looking at the redundant entropy in the bytes (I won't
Re:JRuby versus Java [code comparison - short] (Score:2)
So?
You were criticizing the language, not the article. That code was awful Ruby. Your code was good Java.
I've seen awful Java a lot of times - but I don't rewrite that to good Ruby and then criticize Java based on the single awful piece.
I read both Java and Ruby more or less daily (neither is my primary pay-the-bills language at the moment, though I've paid bills with both before, and expect to do so again). My personal, subject
Re:JRuby versus Java [code comparison - short] (Score:2)
<snip/>
That code was JRuby.
As I said, welcome to slashdot, please read the article. [I didn't read your reply past 'that was bad ruby']
Also, who cares about programming language penis size contests?
I pasted some JRuby code unmodified, and clicked up the normal Java code, and thought, why script this?
Thats about the meat of my post, now if you would like the potatoes, gravy, fancy cutlery and napkins, just ask!
Re:JRuby versus Java [code comparison - short] (Score:2)
And I still claim: Only judge between things you know. But this is Slashdot - maybe expecting thought is too much to ask.
Eivind.
Re:JRuby versus Java [code comparison - short] (Score:2)
As an artist I found it ugly.
Of course, I am biased. I do respect your greater knowledge of Ruby, of course, and that you wrote very nice Ruby code, but also I respect my artistic opinion that it wa
Re:JRuby versus Java [code comparison - short] (Score:2)
write in perl! aaaaargh.
vs Scheme (silk/jscheme) (Score:1, Interesting)
(.setSize frame 400 400)
(.setVisible frame #t)
About that name (Score:5, Funny)
ja-ru-bee? ( gummie candy treat perhaps? )
har-you-bee ?
or jay-ru-bee as though it were named after Lee Harvey Oswald's killer Jack Ruby [doctorcosmo.com] ( J. Ruby ) ?
like Jython... (Score:2)
Re:like Jython... (Score:2)
Re:like Jython... (Score:2)
Re:like Jython... (Score:2)
Re:like Jython... (Score:2)
Re:like Jython... (Score:1)
Or, if you're writing a small utility... (Score:3, Informative)
I needed a small app to analyze SQL query usage [postgresql.org], and Ruby worked great. As long as you're conscientious about writing unit tests, you won't miss Java's static typing at all.
Don't forget the Rhino (Score:1)
JavaScript's similarity to Java can also be helpful for readability.
The Moz guy's are still hacking the core of Rhino and are releasing new version regularly.
Re:Don't forget the Rhino (Score:1)
I've programmed alot with JavaScript and love it but programmed enough with Python to recognize its power.
Scripting layers should only be considered a prototyping layer to try out new methods and techniquies. Ultimately the stablized scriping code should be ported to Java in this case or let's say a C'ish language for it's final production ready destination.
If you are doing alot of deep OO programming, Python is best but if you are using
TCL-Java (Score:1)
http://tcljava.sourceforge.net/docs/website/index. html [sourceforge.net]
Re:TCL-Java (Score:2)
Hrmph. (Score:4, Informative)
Groovy [codehaus.org] is, IMO, a near-clone of Ruby designed from the ground up to integrate with Java, and would probably be a better choice than JRuby. I think the Groovy documentation isn't quite there yet, tugh.
Wasn't that the guy who shot Oswald? (Score:1)
jruby is stalled.. (Score:1)