Skip to main content

Questions tagged [dsl]

A domain-specific language (DSL) is a programming language or specification language dedicated to a particular problem

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. ...
Chris's user avatar
  • 535
0 votes
3 answers
233 views

When using a DSL to structure my application, should I favor coupling the code with the DSL, or trying to have majority of my code independent of it?

We're currently using the Apache Camel Java DSL to structure our application, but I guess this question can mostly apply to any DSL in general. Now, amongst our developers, we are divided on two polar ...
random_software_dev's user avatar
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 ...
flowit's user avatar
  • 237
-3 votes
1 answer
157 views

Is there a standard format for build packaging or do I need to invent my own format?

I have a build pipeline that builds my C++ project on Windows, macOS and Linux. The build process generates 100 libraries and files on each OS. So I have a directory with these files, and I want to ...
Daniel Stephens's user avatar
1 vote
1 answer
561 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 ...
andykais's user avatar
  • 111
0 votes
1 answer
503 views

c# Fluent Builder and invalid object state

I have a question about Fluent Interface Builder. I have a simple object like this: public class Person { public string Name { get; set; } public string Surname { get; set; } public int ...
pampua84's user avatar
  • 133
-2 votes
2 answers
799 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 ...
Benjamin Egelund-Müller's user avatar
-1 votes
2 answers
638 views

Unambiguously represent separator in a string containing an URI?

I'm trying to develop a way to represent something that has an URI inside of it, let's say: {someVariable}{separator}{URI}{separator}{anotherVariable} where someVariable is alphanumeric. I just ...
Štef FoReal's user avatar
1 vote
1 answer
172 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/...
nikita's user avatar
  • 151
0 votes
3 answers
2k views

Can Aggregate Root Factory create the root, and it's internal classes?

Currently, my aggregates and value objects have protected constructors and some of them are being created by static factory methods inside the aggregate with descriptive names. It creates a nice DSL ...
Mohsen's user avatar
  • 209
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....
Diana's user avatar
  • 151
1 vote
0 answers
85 views

Pointers on porting a c++ workflow domain specific language to javascript

I am writing a game in c++ with the v8 javascript engine embedded in it. I have a c++ workflow system I use to tell things how to do specific things. It's nice and I like it, but I need it to work ...
xaxxon's user avatar
  • 278
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 ...
user2609980's user avatar
1 vote
1 answer
496 views

Create parts of DSL as Quickfix from xtext grammar

I currently experimenting with DSLs with xtext. I want to implement a quick fix for the dsl I'm writing and I'm wondering, if there is a possibility in xtext or xtend hook (or something else) to ...
thepacker's user avatar
  • 893
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 ...
Sherman's user avatar
  • 163

15 30 50 per page