What a fantastic example how DSL's can got completely mental.
Its like letting really mad people inventing API's but going for the Nuclear
option.

Keep the surface area down.
Don't buy the argument that being able to create a million mini languages is
somehow going to help us one bit.
It is not, its mean complexity will explode

P.S. Persistence seems quite a nostalgic example given the amount of
companies and developers that end up back with straight JDBC after that
terrible, terrible EJB debacle ;-)


On Mon, Aug 9, 2010 at 6:09 AM, Mario Fusco <[email protected]> wrote:

> > And why does everyone keep talking about DSL's?
>
> Let me give you an example of a wonderful DSL written in Scala:
>
> http://wiki.github.com/alaz/mongo-scala-driver/
>
> As you can easily understand this is the Scala driver for MongoDB.
> Just note the small code examples you can find in the home page of the
> project. You can find gems like:
>
> // Skip first 5 and get 2 users
> for {val u <- User drop 5 take 2 in users} ...
>
> and
>
> // Query by regexp
> val endingBy5 = User.name ~ "r5$".r in users
>
> Can you imagine a more readable DB driver? Wouldn't you be more
> productive with it if you were involved on project that uses MongoDB?
>
> Bye,
> Mario
> twitter: @mariofusco
>
> --
> You received this message because you are subscribed to the Google Groups
> "The Java Posse" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<javaposse%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/javaposse?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en.

Reply via email to