in reply to Is use of a simple DSL for a configuration a good idea?
The term was originally coined in LISP, where data and code are almost the same.
But Ruby is monopolizing this somehow now and people tend to call any function calls without parens a DSL.
> if there are any advantages to this approach to a configuration file.
It has some advantages like
Martin Fowler's book is an interesting read about DSL, though it often shows his origins in statically typed languages.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
*) I couldn't find chromatic's original blog post anymore, but he commented once about the hype.
1. Have you ever programmed in a language other than Ruby? (PHP and HTML don’t count.) If not, it’s a DSL.
2. Is the defining syntactic feature that youÂ’ve cleverly left the parentheses off of a list of function arguments? If so, it’s a DSL.
3. Is the code primarily a list of key-value pairs? Welcome to DSL Town, population you!
5. Have you ever used the phrase "… and it reads just like English!” in seriousness? You’d better get to the hospital; you’re coming down with a case of the DSLs!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Is use of a simple DSL for a configuration a good idea?
by nysus (Parson) on Oct 18, 2018 at 14:56 UTC | |
by LanX (Saint) on Oct 18, 2018 at 15:02 UTC | |
|
Re^2: Is use of a simple DSL for a configuration a good idea?
by Anonymous Monk on Oct 18, 2018 at 06:08 UTC | |
by rizzo (Curate) on Oct 18, 2018 at 12:38 UTC | |
by LanX (Saint) on Oct 18, 2018 at 13:36 UTC | |
by Anonymous Monk on Oct 19, 2018 at 01:06 UTC | |
by LanX (Saint) on Oct 18, 2018 at 07:32 UTC |