Re:The English-Likeness Monster Stalks a New Generation of P...
by steveklabnik on Tuesday January 29, 2013 @07:12PM
(#5137288)
People often think of DSLs as a way of making a concise, expressive view of the domain look like English. See, for example, RSpec.
(I guess what I'm really saying is that you're right, but you're saying something else, raganwald is right too.)
Re:The English-Likeness Monster Stalks a New Generation of P...
by chawco on Tuesday January 29, 2013 @10:28PM
(#5137887)
I don't think raganwald is right here, or rather he's only right about a subset of DSLs -- the subset of DSLs which attempt to map a specific domain to english. I think most good DSLs eschew mapping domains to english in favour of mapping those domains to some new language designed to express information about that domain.
Re:The English-Likeness Monster Stalks a New Generation of P...
by Camillo on Tuesday January 29, 2013 @07:20PM
(#5137310)
I'm having a variant of the Baader-Meinhof phenomenon where I start seeing something everywhere after writing about it (http://news.ycombinator.com/item?id=5056667).
Re:The English-Likeness Monster Stalks a New Generation of P...
by iambot on Tuesday January 29, 2013 @07:59PM
(#5137459)
I personally like how cucumber tests look exactly like english but it's up to the test writer to explain (through the writing of "step definitions") what each type of phase means (in actual ruby) and then when you combine them you can perform any number of _domain-specific_ tasks. Kinda neat. and a halfway between actually writing a DSL and explaining to the ruby runtime how to interpret a subset of english for this domain.
A good DSL has no need to "look like English".