Science Fair Project Encyclopedia
Categories: Slang | Britain | British | Programming languages | Object-oriented programming languages | Java programming language family
Groovy
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
Categories: Slang | Britain | British | Programming languages | Object-oriented programming languages | Java programming language family
The contents of this article is licensed from www.wikipedia.org under the GNU Free Documentation License. Click here to see the transparent copy and copyright details


