Archive for the ‘Groovy’ Tag

Groovy Domain Specific Language Tutorial

August 17, 2008 – 8:42 pm

Although it may seem like an advanced topic, writing a simple Domain Specific Language (DSL) in Groovy is actually pretty easy. Groovy's dynamic nature and metaprogramming capabilities give developers all the tools they need to quickly and easily write their own DSL.

Putting Google Finance to REST with Groovy

July 16, 2008 – 11:07 pm

For a while now I've been interested in learning more about building and consuming REST based web services. Fortunately, many tech giants including Google and Yahoo expose much of their data and functionality through REST based APIs. These powerful APIs, combined with Groovy's concise, readable syntax make it ...

Groovy Metaprogramming – Creating Behavior on the Fly

July 8, 2008 – 12:07 am

In my previous post I talked about dynamically adding behavior to Groovy classes using either the ExpandoMetaClass or Categories. These techniques are especially useful if you know which methods you would like to add to your classes prior to actually writing any code. But what if you don't ...

Groovy Metaprogramming – Adding Behavior Dynamically

June 29, 2008 – 10:00 pm

I've been fascinated with languages like Ruby and Groovy ever since being exposed to their dynamic capabilities. I remember attending a No Fluff Just Stuff conference a few years ago and being awestruck while watching Dave Thomas build a full-blown Rails application within a matter of minutes. Dynamic ...

Easy AOP with GroovyInterceptable

June 18, 2008 – 2:56 pm

Aspect Oriented Programming (AOP) is a technique that can be used to eliminate the repetition of cross-cutting concerns (logging, security, transaction management, etc.) in code. AOP is useful because it provides programmers with a single point at which code can be modified and take effect across an entire system, ...