Re:Ruby DSL Handbook
by jes5199 on Friday February 06, 2015 @01:19PM
(#9010563)
how about: every DSL should be a thin translation layer over a clean API. Too many times I've been burned by gems that provide a DSL and there's no other way to use their functionality.
[ Parent
| on HN ]
Re:Ruby DSL Handbook
by saturnflyer on Friday February 06, 2015 @01:30PM
(#9010632)
Yes. Too often this is done even with complex procedures inside methods. A good DSL should be syntactic sugar for making things easy or at least provide some syntactic vinegar for doing non-recommended things (while still allowing them).