3 ms·
Nanana... I know both, and Scala and Groovy are complety different tools Groovy is great to Websites and fast development they remove the code complexity and v
by cfontes 14y ago
Nanana... I know both, and Scala and Groovy are complety different tools
Groovy is great to Websites and fast development they remove the code complexity and verbosity of java using type inference, some functional goodies like closures and add DSL capabilities,I use it everyday and it's a very nice tool.
Scala is another kind of tool, it also does type inference and add functional goodies and support DSL BUT it have a deep love to parallelism (actors and non mutable objects as an example) and is way closer to the functional paradigm than Groovy, but it's more complex.
So you gotta choose wisely so you don't end up with the hammer to a screw kind of problem.
My view:
Groovy is for fast development and WEB stuff mainly because of Grails which is an awesome tool as well.
Scala is more a backend tool when you need Horse Power, but that's because the lang is more complex, I don't like Play and Lift is not as easy to understand as Grails.
Again no Flamewars please.
- mgkimsal 14y agoWasn't trying to start a flamewar. Yes, they're completely different tools. Per the original quote though "it (scala) allows enterprise developers to taste some of the goodies of Ruby / Python" Groovy fits that bill far better than Scala if you're primarily looking for a taste, without having to adopt the complexity of a new worldview.
- cfontes 14y agoI am sorry I said no flamewars because of what I was saying, to point that I didn't want to start one. Your answer was not the flamewars kind at all. And yes Groovy fits perfectly in that statement.
- chaostheory 14y ago> Scala is another kind of tool, it also does type inference and add functional goodies and support DSL BUT it have a deep love to parallelism (actors and non mutable objects as an example) I believe Groovy also supports actor concurrency via gPars. That said, I still haven't seen anything like Akka on any other language, specifically its distributed processing p2p feature. To me Akka is Scala's 'killer app'. I agree I don't like the new Play framework. I didn't mind the magic being taken away but with taking the magic out, they also killed any form of convenience without providing a replacement.
- discreteevent 14y ago" I stil haven't seen anything like Akka on any other language". You can use Akka from java but the messages are effectively dynamically typed which isn't a big deal. However, as Rich Hickey said, a queue is simpler than an actor (Go understands this also). Java has excellent blocking queue implementations. In fact java has libs that support all kinds of concurrent solutions and they are not that complex. I still like Scala though (and really like Go but my work is on the jvm)
- chaostheory 14y ago> You can use Akka from java True, but I just got sick of Java being a 2nd class citizen on Akka. > In fact java has libs that support all kinds of concurrent solutions and they are not that complex. hmmm does java have a distributed concurrent solution that isn't complex? Aside from Akka, I am not aware of any.