Quantcast
Channel: CaelumObject Developers' Blog » tdd
Viewing all articles
Browse latest Browse all 4

Driving design: adding a touch of our domain to our APIs

0
0

In this second screencast from the Driving Design series, the amazingly simple form gem is shown along with a simple DSL implementation.

Its current API uses a fluent interface through Ruby hashes that allows easy output customization. This is the current version of simple_form that allows one to configure the building process of a form:

The video shows how one could add a domain specific language on top of its API and remove some of our api code without breaking compatibility. Using the implemented DSL:

The commit can be found here and you are welcome to enhance the DSL further.

If you have any suggestions for our next screencast, let us know at @guilhermecaelum and subscribe to our channel.


Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images