BIGpedia.com - Groovy - Encyclopedia and Dictionary Online
encyclopedia search

Groovy

(Redirected from Groovy programming language)

In slang and informal language, "groovy" is an adjective describing an unspecified fashionable or desirable quality. It can also be used as a generally positive exclamation. It originated in Britain, and largely remains a British word. "Groovy" has slightly outdated connotations in recent times, although it can still be used in everyday speech.


In computing, Groovy is an object-oriented programming language designed for the Java platform as an alternative to Java programming language with features from Python, Ruby and Smalltalk.

Groovy uses a Java-like syntax which is dynamically compiled to JVM bytecodes and that works seamlessly with other Java code and libraries. The Groovy compiler can be used as an alternative to javac to generate standard Java bytecode to be used by any Java project or it can be used dynamically as a scripting language.

Groovey revers to someone who is perhaps working on Groove Virtual Office too much :-)

Groovy is currently undergoing standardization through the Java Community Process [1].

Examples

Slang:

Groovy paintjob
Real groovy to see you baby!
Computing:

class Foo {
  doSomething() {
    data = ["name": "James", "location": "London"]
    for (e in data) {
      println("entry ${e.key} is ${e.value}")
    }
  }

  closureExample(collection) {
    collection.each { println("value ${it}") }
  }

  static void main(args) {
    values = [1, 2, 3, "abc"]
    foo = new Foo()
    foo.closureExample(values)
    foo.doSomething()
  }
}

External links



The contents of this article are licensed from Wikipedia.org under the GNU Free Documentation License.
How to see transparent copy

01-04-2007 01:21:04