USI 2009 Session
Practical Domain-Specific DSLs
Understanding the domain within which customers evolve is a key factor in the success of a project. From this domain and its wealth of concepts, as software developers and architects, we can derive a design that is aimed at solving problems encountered in the day-to-day business.
So far, we mostly solved these brainteasers with computer science paradigms like Object-Oriented Programming, n-tier architectures, or with tools such as rules engines to stay close to the domain at hand. However, with the advent of dynamic languages, a new era has come to let you create languages taylored to a given domain of knowledge, allowing you to share a common methaphore of understanding between developers and subject matter experts.
Groovy, the popular and successful dynamic language for the JVM, offers a lot of features that allow you to create embedded Domain-Specific Languages. Closures, metaprogramming, operator overloading, named arguments, a more concise and expressive syntax, are elements of Groovy you can take advantage of to create your own mini derived language.
The purpose of this presentation is to show how to write such DSLs in Groovy, discovering in turn those various techniques, with pratical and concrete examples taken from real-life projects leveraging Groovy DSLs.
About speaker
Session tags
> View all tagsSuggestions
-

Duel: Wiki vs. CMS (Content Management Systems)
Collaborative offers for businesses are exploding, and we’re seeing two types of tools...
-

Yes ! PHP is Enterprise ready !
If PHP has attracted the company due to its flexibility and performance, it still trails sulphurous...
-

A few ideas taken from the “bigwigs” of the web to make you think twice about your architect reflexes
How does Google store its data? ("What! It’s not relational?!"), How does Amazon...

Be the first to write a comment