Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This whole thread said exactly what I wanted to write. Feels bad to be so pre-empted.

DSLs that solve a specific problem with a page or two of documentation overhead are great.

Trying to reinvent paradigms or scope creep is where the pain comes in. Seems like the post author has been burned by that type of DSLs.



> DSLs that solve a specific problem with a page or two of documentation overhead are great.

Do you have any example? I’ve heard lots of good things of dsl, but never had the luck to witness it’s full glory.

(except for regex, which I love, but it has more than two pages of docs)


I've coded some myself, and have used some... but it depends on where you draw the line.

I'd consider Python's f-string syntax a DSL of sorts.

YAML might be considered a simple DSL, if you don't consider it a language/format instead. It's a bit more than 2-3 pages, but it's not hundreds of pages. And a simplified version could be constructed with <10 pages.

Similar to YAML, but for Markdown. I'd call that a DSL too, and it's even simpler than YAML.

Then, something more tiered as: CSV, JSON, TOML, INI, AsciiDoc

Once you're in the short form, it's a bit blurry what's a format, what's a DSL, and what is a language.

PS. Sorry for the late answer, I missed the direct question for a bit.


I would say that is the line between DSL and just “L” another language…




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: