TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Diving into Domain-Specific Languages: A Practical Guide for Developers

34 pointsby arijo12 months ago

4 comments

wduquette12 months ago
From the preface to the book:<p>&gt; As I looked at all of this, I felt a sense of a knowledge gap. I saw people using XML where a custom syntax would be more readable and not harder to do. I saw people bending Ruby into complicated contortions when a custom syntax would be easier. I saw people playing around with parsers when a fluent interface in their regular language would be a lot less work.<p>In short, Fowler isn&#x27;t espousing implementing new syntax at the drop of the hat; he recognizes the various forces many other commenters on this post have already mentioned, and navigates through them appropriately.
erhserhdfd12 months ago
Has anyone implemented a DSL for a professional use case? I would love anyone to share what was the use case, what alternatives did you consider and how did you measure success?<p>I have previously implemented one for credit policy decisions, but I am not sure in hindsight if it was the right approach and we did a poor job of measuring success, so I would love to hear from the community.
评论 #40566182 未加载
评论 #40566951 未加载
评论 #40566889 未加载
评论 #40566472 未加载
评论 #40566405 未加载
评论 #40566404 未加载
评论 #40566544 未加载
评论 #40566576 未加载
评论 #40565989 未加载
评论 #40566707 未加载
评论 #40567140 未加载
评论 #40566508 未加载
herrington_d12 months ago
Authoring in DSL can improve efficiency and productivity, but in my experience DSL itself brings benefits to a limited extent. It can be easier to read and write, but these benefits require one to understand the business model behind the DSL, which is usually more time-consuming.<p>Having a strong validation and observation toolset based on the DSL brings more value than the language itself. DSL constrains its semantics so it is easier to build tools on it.
bmaio8612 months ago
A very good read. Thanks for sharing.