Category Archives: Groovy

Custom Validators in Grails in a Single App

In my previous post I wrote about Building a Custom Validator in Grails using a Plugin. That’s a great way to build a reusable Constraint that will allow you to share your code among multiple projects. But often you only … Continue reading

Posted in Code, Groovy | Tagged , , | 3 Comments

Build a Custom Validator in Grails with a Plugin

Grails is a really nice MVC framework inspired by Ruby on Rails. The difference is that Grails is built using Groovy and Java and leverages existing, well known frameworks as it’s foundation. It is essentially a fairly thin convention-over-configuration and … Continue reading

Posted in Code, Groovy | Tagged , , , | 10 Comments

Coffee DSL Redone With Meta-Programming

In a previous post I wrote about DSLs as Jargon. I implemented a simple Coffee DSL that would allow code to parse an order written by a human and turn it into a domain model. I used a fairly basic … Continue reading

Posted in Code, Groovy, Ruby | Tagged , | 1 Comment

Coffee DSL in Groovy

I thought I’d follow up with my previous post with the Coffee Domain Specific Language in the Groovy Language. This is really one of my first forays into Groovy, so it’s pretty rough. It’s really just a direct translation of … Continue reading

Posted in Code, Groovy | Tagged , | 2 Comments