DSLs in CoffeeScript
amix.dk
amix.dk
Post.where published: yes
Account.joins('customer').where customer: name: 'Pepsi'
Which compiles into this JavaScript: Post.where({
published: true
});
Account.joins('customer').where({
customer: {
name: 'Pepsi'
}
});[1] http://martinfowler.com/bliki/DomainSpecificLanguage.html
For instance: nobody uses nested closure[1] techniques in java, because anonymous classes are too much of a verbose implementation of closures, not to mention that they can only close over final variables, making it even more cumbersome
[1] http://my.safaribooksonline.com/book/software-engineering-an...