97 reputation
2
bio website
location
age
visits member for 2 years, 3 months
seen Sep 21 at 12:09

Sep
21
comment Speed difference between VM-based and compiled code
"The Groovy code was easier to write as the language was much more expressive, but the price paid was slow execution" - When comparing 2 years with 3 hours, better to say "but the business computing assets were written off by the slow execution". And don't forget if it takes 2 years to find out if the Groovy version processes incorrectly (e.g. each char in first String being read instead of each String from the regex result), then you must add that 2 years to the time taken to write the code.
Sep
21
comment Is it possible to have a single code base for a desktop GUI and a web application?
Groovy has Grails as a framework for the web and Griffon as one for the JVM desktop as two separate frameworks, but Griffon began its life by being forked from Grails so perhaps there's some scope for common codebase there. Just a thought.
Sep
21
comment Scripts to run Java programs - e.g. Ant
"Gradle allows you more customization than Maven in some cases since you can add almost any Groovy code into your build process" - Would be nice if we could add almost any Scala or Clojure or JRuby or other code into our build process too.
Sep
21
comment When is an API considered to be an embedded DSL?
"inventing new operators like Groovy" Perhaps you meant Scala; in Groovy the operator set is fixed but can be overloaded like in C++.
Sep
21
comment Representation of a question mark in variable names
I remember a discussion years ago on the Groovy mailing list where the despots contemplated only requiring a single question mark and the null safety would ripple through the terms after it in the path expression, so company.getLocation()?.getStreet()?.getStreetName() could be written as company.getLocation()?.getStreet().getStreetName() and have the same effect. I don't think they've gotten around it implementing it though.
Sep
21
comment Traits, Inheritance and Interfaces in Groovy, when to use them?
"groovy and I've just learned about the new feature added in 2.3, which is the addition of Traits" - Traits were first added to pre-2.0 Groovy via an AST addon called the Groovy++ booster, see code.google.com/p/groovypptest/wiki/Traits
Sep
21
comment Finding metrics for development time in different languages
It's good to look beyond whether something's "easier to write in Groovy" and whether the functionality exists in Groovy, and instead look at "time gained/lost in the real world". But don't forget other real-world metrics such as costs and risks. By risk I mean as an example that the static compilation of Java was written and tested by hundreds of people over a decade or two, whereas the static compilation of Groovy 2 was written by a single lone programmer a mere two years ago.
Feb
21
comment Query Language for Java Code Analysis
> "All valid java is valid Groovy" There's many occasions where Java doesn't run as Groovy or does something different. The official list from Codehaus listing gotchas like == is glib about the nasty bugs that arise when compiling Java code in Groovy. Then there's the gotchas not listed. When I was using Groovy a lot 5 yrs ago, I would often compile Java code in Groovy and it wouldn't work the same and I just couldn't work out why. Java 8 is likely to bring many more incompatibilities. Codehaus seem to be dragging their feet on this.
Feb
21
comment How do you convince management to throw away a prototype?
"Groovy is nice to use quick to develop but performs like a geriatric snail, however it is trivially easy to re-factor performance critical sections in to pure Java." You really need to refactor the entire prototype into Java if you use Groovy to build a prototype.
Dec
15
comment Is there a clear leader amongst JVM-based languages?
@Deckard You wrote "Groovy refer to a language and implementation", but Groovy creator James Strachan made clear the Groovy Language is different from the implementation hosted at Codehaus, which he called the current RI of Groovy‌​. Just because Groovy presently only has one implementation doesn't mean Groovy is both a language and implementation.
Nov
11
comment What makes JVM so much versatile to support so many JVM languages?
"Groovy,Clojure,Scala etc which are functional". Some of those are more functional than others. I would use a scale with Groovy the least funcional and Clojure the most, with Scala in the middle.
Apr
4
comment What are the practical benefits of LISP like syntax which Clojure uses over Java like syntax of Scala?
Getting used to prefix (+ 1 2) notation means you can define macros. Paul Graham's On Lisp explains the benefits of macros in great detail.
Apr
3
comment Language Design: Are languages like Python and CoffeeScript really more comprehensible?
"Debugging Groovy is painful, you end up stepping through endless obscure internal Groovy classes before you get back to your own code." That's the breaks when using dynamically-typed languages on the JVM.
Apr
3
comment Why are Java servers so scarce and costly?
A/ctd: There is also Scala and Play!2, also easily learnt and very productive. There's also Clojure and Noir, again easily learnt and very productive. There's also JRuby and Rails, the #1 framework on the web!
Apr
3
comment What should I do to be language-agnostic?
To "the whole Groovy/Grails world" you could add ", the whole Scala/Play!2 world, the whole JRuby/Rails world, and the whole Clojure/Noir world".
Apr
3
comment Record management system java web framework
Play! 2 based on Scala is even better. Play! replaced every last line of its Groovy code when updating from version 1 to 2. Groovy's creator James Strachan said he would never have created Groovy if he'd known about Scala.
Apr
3
comment Basic use of Business Rules
Other languages such as JRuby and Scala also allow you to create a custom DSL.
Apr
3
comment Is this how dynamic language copes with dynamic requirement?
"Dynamic language" is more of a marketing term. Now statically typed languages like Scala and C# has a dynamic keyword, they are now dynamic languages!
Apr
3
comment Is Groovy going away?
"If one was to look at Grails vs Lift today, then Grails would be clear winner", you said 2 yrs ago, but Play! 2 has easily supplanted Lift as the leading Scala-based web framework, and is streets ahead of Grails (IMHO).
Apr
3
awarded  Commentator