Skip to main content

Questions tagged [dsl]

Domain-specific languages are computer languages specialized to a particular application domain. Examples are HTML, Unix shell scripts and MediaWiki templates.

0 votes
0 answers
45 views

I am looking for a good way to structure my Kotlin code using Spring Boot 4 and Spring 7. The new features I am using are: Reflectionless dependency injection via ...
Alexander Petrov's user avatar
2 votes
0 answers
83 views

If you'd like to pivot this: ...
candied_orange's user avatar
4 votes
0 answers
112 views

If you'd like to print this: ...
candied_orange's user avatar
4 votes
2 answers
150 views

I recently finished cleaning up my code in a compiler/interpreter for a strongly-typed domain-specific language, which makes use of three sorts of types: Compile-time enumerated types: Have one of a ...
P...'s user avatar
  • 141
0 votes
1 answer
501 views

I build web application using Kotlin and Spring Boot, I use MockMvc to write integration test. I'm not satisfied how assertion looks like, here is typical assertion: ...
Mateusz's user avatar
  • 113
8 votes
2 answers
424 views

As one step in a larger builder setup, I need to build a small collection of objects, each with a small number of required attributes, and each of those with a small set of possible values. The actual ...
Mike M.'s user avatar
  • 223
1 vote
0 answers
412 views

I'm looking to create a library that extends kotlinx.html and will include functions that have default css classes. The goal is to be able to use a function row{} ...
Johan Vergeer's user avatar
2 votes
0 answers
127 views

Following the patterns from the book Domain Modeling Made Functional, I am implementing a single-case union for the simple values in my domain model instead of using primitives. The union cases have ...
Aaron M. Eshbach's user avatar
3 votes
1 answer
1k views

I have created a DSL for AutoMapper using an F# Computation Expression Builder. The Computation Builder itself is fairly simple, and effectively defines 5 basic operations: ...
Aaron M. Eshbach's user avatar
5 votes
1 answer
517 views

I am trying to learn Elixir, so I decided to write a port of Ruby's Parslet library. I want to define a DSL that lets you define your grammar and given a string can parse it into an AST. I wrote ...
Nigel Thorne's user avatar
3 votes
1 answer
1k views

Scenario Once upon a time, there was this human (ahem, me, ahem) who tried (and succeeded) to build a small program which would convert JSON to a MSSQL query using Python 3.x. How does it work? The ...
Cajuu''s user avatar
  • 331
5 votes
1 answer
3k views

I'm struggling to improve this command-line java application, which reads CSV or txt files, ands allows the user do some "queries" with the data. I can't use any external library, so I'm doing it all ...
Loading...'s user avatar
6 votes
1 answer
129 views

I'm working on a DSL for web development, similar to sinatra. The git repository is here. I've been attempting to improve this code and write it for 4 months, and as a hobby programmer, I would like ...
thesecretmaster's user avatar
10 votes
1 answer
8k views

I wrote a DSL for defining a finite state machine. My robotics team wants to use a state machine to manage the state of the subsystems on our robot, like the arms, drive train, lifter, etc. Each ...
Roth's user avatar
  • 103
3 votes
2 answers
3k views

The task at hand was to ensure that certain columns in the database are encrypted in case the database data is stolen. I have a feeling that a lot can be improved here (naming, DSL, encapsulations) ...
Adam's user avatar
  • 117

15 30 50 per page