Questions tagged [dsl]
A domain-specific language (DSL) is a programming language or specification language dedicated to a particular problem
46 questions
2 votes
1 answer
2k views
What are the best practices to follow when using global variables when you must use them?
What are the best practices when using global variables? Normally, the common answer to this is to avoid using global variables and use local variables, properties and arguments to pass data around. ...
0 votes
0 answers
177 views
Domain specific language for regex processing
I am working on a DSL for text processing. The core is searching for regular expressions with some operators around them. These searches are embedded into a more procedural program, which allows for ...
1 vote
1 answer
563 views
Advice on designing a scraper DSL
I am creating a DSL for a scraping library I am writing. I would like advice on how to design a DSL, and if the designs I have below are good ones. Apologies if this is an open-ended question, but it ...
-2 votes
2 answers
800 views
What is the best way to run untrusted hooks/plugins?
I'm building a data processing system where users can submit hooks to execute on incoming data. The hooks are untrusted and should execute in a sandbox with access only to a limited API that I expose ...
1 vote
1 answer
173 views
What's the current state with Application-Level Profile Semantics? Anyone use them?
Reading books on REST architecture(especially O'Reilly) many times I came across the idea that one should attach data's description into link http header. Link: <http://example.com/...
4 votes
2 answers
909 views
When is code considered a domain specific language
Today, an interesting discussion with a colleague. We're going to create a wrapper for WCF's channels, that will handle the Close(), Abort() and Dispose() correctly. This wrapper is to be used instead....
0 votes
1 answer
170 views
Determine execution order based on declarative definition?
We want to create a DSL in Scala where you can declaratively list the ingredients that a product consist of. These ingredients can consist of for example "Create product a", "Create product b", "Send ...
6 votes
2 answers
3k views
Using a rules engine to manage client and server side validation of business rules?
Has anyone managed to use a common rules system between their frontend and backend? Similar to this question: Managing client-side and server-side validations in one place, I'm trying to find a way to ...