Driving design: adding a touch of our domain to our APIs
Posted on 21. Jan, 2011 by Guilherme Silveira in agile, ruby, tdd
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.
SUBSCRIBE TO OUR RSS
Trackbacks/Pingbacks
[...] This post was mentioned on Twitter by Guilherme Silveira, Jésus Lopes and Mauricio Aniche, Alexandre Gama. Alexandre Gama said: RT @guilhermecaelum: driving design part 2: adding a touch of domain to our apis http://bit.ly/ijkJQy [...]