Clojure and Rails - the Secret Sauce Behind FlightCaster (YC S09)
infoq.com
infoq.com
That could just as easily be the sort of batch processing Big Freaking Java Enterprise stuff we do at the day job -- we'd spend 1/10th the time on writing screens and action classes and still be able to use that ridiculously overpriced report generation library we're married to.
Wait a second... that needs to get brought up on Monday at work.
This approach allows you to hide the data models of both parts of the system from one another so you don't end up back in the hell of integrating via the database, which is what I suspect you were driving at with your question. You obviously can't avoid having to share some information between systems, but in this model you can share message and service contracts rather than database schema.
The JVM has no shortage of message queue systems unlike other languages. Any language with the enterprise stamp on it will probably have 50 something message queue systems for it.
Not to mention the fact that the guy who co-invented Groovy is now a Scala advocate.
This seems to have been turned into a giant piece of FUD against groovy which puzzles me. He didn't say anything bad about Groovy. He simply said that had Scala already existed, he would not have invented Groovy. Like saying, if I had a Lamborghini I might not bother buying a Porsche. I don't see why all of a sudden people think it means Groovy is bad any more than it means a Porsche would be bad. It also means that you'd be unhappy with JRuby or Ruby itself for that matter since all the reasons he gave for liking Scala were about it's static typing and other features Ruby doesn't have. Or of course, perhaps you just enjoy indulging in language FUD and I'm feeding a troll.
Re: documentation - I think you're probably right that Rails is better, but I think both are above the necessary threshold that it's not a problem either way.
But if a language designer tells me "hey, if item B had existed when I created item A; I wouldn't have needed to create item A", that sounds like an improvement.
I don't really care for Groovy in either direction (it's not bad but it ain't great); but I fail to see how mentioning my opinion is trolling.
Actually, Scala did already exist when Groovy was created. What Strachan really said is this:
"I can honestly say if someone had shown me the Programming in Scala book by by Martin Odersky, Lex Spoon & Bill Venners back in 2003 I'd probably have never created Groovy."
- http://macstrac.blogspot.com/2009/04/scala-as-long-term-repl...
That said, I still think Groovy and Grails are a potent combination for increasing productivity in traditional Java shops.