by jrochkind1 · 7y ago · 0 comments
Sounds so appealing to programmers, so much harder than it sounds. A dangerous fantasy many ships have broke upon.
The proposals of "yagni" and the "mvp" are in some sense a reaction to the danger.
On the other hand, when it works, it works. I'd say Rails is an example.
More generally, I agree with the author on the importance of seeing a hierarchy here.
In Lisp world, you start your DSL with a simple defmacro, and iterate from there. Lexer, parser, type checker and compiler is already handled for you, you only need to add some code where the rules differ. For a DSL you create within your codebase, you almost never need to do extra work here.
Which has always made me think... so HOW is this different than an API anyway, why does it have a special name? Aren't all API's "domain-specific languages" of a sort? Certainly they can be good or bad APIs, in a variety of ways, including being a good or poor fit for the domain of work they are trying to enable. But if in the end the implementation is just (ruby) calling methods on instances, or (lisp) calling macros and lambdas (or however you'd describe it in lisp if i've gotten it wrong)... isn't that what every API is, what's the difference?
Pinball Construction Set (https://en.wikipedia.org/wiki/Pinball_Construction_Set) takes that a step further, not only allowing you to change colors and patterns, but truly allowing you to change the pinball machine.
And of course, there’s tools such as dBase II, Excel, Visual Basic and HyperCard.
More completely it's the environment, architecture, language, requirements, customer, experience and team.
I've rarely found a need for a generator that wouldn't be more simply and universally solved via a configuration pattern.
viz the yet-anothers of: make build system, programming language, configuration syntax, (mvc) framework, ORM, game engine, CMS...
Sourceforge and github are filled with monuments to unrealized dreams and wasted centuries.