Get Lanyrd on your mobile (iPhone, Android and more) - check it out here

Bootstrapping embedded DSLs with Groovy

A session at DevCamp Pune 2010

In a world where MetaObject Protocol hacks like methodMissing provide quick ways to create DSLs, Groovy's BuilderSupport class is a less known but a very powerful tool that makes this process easier and provides for some structure around such implementations. While prone to tree structures, a little tuning can create terse yet flexible vocabularies.
Another approach to DSL's in Groovy involves a combination of Categories and Groovy's pseudo operator overloading. This approach may well provide much more fluent DSLs and a better organization of code.
The session could (very well should) demonstrate several examples of such DSLs of varying complexity; but not before having demonstrated the plethora of builders already available in the Groovy ecosystem.

About the speaker

This person is speaking at this event.
Saager Mhatre

Lazy Hacker, Curious Skeptic, Community Herder, Part-time Gamer & Former ThoughtWorker; Currently employed by @vayana_engg

Coverage of this session

Sign in to add slides, notes or videos to this session

DevCamp Pune 2010

India India, Pune

16th October 2010

Tell your friends!

Short URL

lanyrd.com/sckrk

Official event site

devcamp.in/index.php/Pune/2010/1

View the schedule

Topics

See something wrong?

Report an issue with this session