🔤Domain-Specific Language (DSL)
Also known as DSL, Domain Specific Language, Special-Purpose Language
A small language made for one job, like SQL for data or CSS for looks.
Think of it like
It is like the words only cooks use. They are great in a kitchen and no help in a garage.
Example
Why it matters
A good DSL turns a long program into one clear line. Most developers use several every day.
Definition
Example code
sql
SELECT name FROM customers WHERE city = 'London';Common mistake
Key takeaways
- 1One job. Made for a single task.
- 2Few words. Short to say what you mean.
- 3Not for everything. Pair it with a full language.