Tag Archives: meta-programming

DRYing Grails Criteria Queries

When you’re writing code, Don’t Repeat Yourself. Now say that 5 times. *rimshot* One of the things that I find myself repeating a lot of in many business apps is queries. It’s common to have a rule or filter that … Continue reading

Posted in Code, Groovy, Web | Tagged , , , | 11 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