(This article is pure opinion and is not based on any facts what so ever...)
At present (in April 2026) not only are most programmers not writing code directly, we are not writing Domain Specific Languages directly either. A domain specific language, unlike a general programming language, is a language written to solve a specific problem. Often a DSL is translated into a general purpose language (either by interpreter or compiler) and exists to help a programmer read code and reason about a problem in a more readable way.
One example that comes to mind is a Arel which is a DSL for writing SQL queries. While SQL is already quite user friendly on the surface, queries can become complex quite easily after a few joins. Also, there are slight differences in SQL depending on which database you use (e.g. Postgres vs MySQL vs Oracle) so having a DSL smooths over these changes as well.
However, sometimes achieving what you want to do in Arel can be harder than doing it in raw SQL and also Arel doesn't always write the most efficient code in the world. Arel also assumes you are using models with standard inheritance and you might not be. Overall though, Arel is designed to make life easier for you.
Enter AI.
With AI you can describe the queries you want (rather than having to specify everything exactly) and it can write them directly in SQL. You can also point it to an existing query (or group of queries) and have it explain to you what it does. On top of that you can ask AI to redesign the existing queries for performance if needed.
If you can do that, why would you need to write anything in Arel anymore?
As there are existing DSLs and a lot of code written using them (which AI is also capable of writing) they will not be going away anytime soon. However I would think twice before making a new DSL today. There are probably fewer reasons to do so than there were in the past.
Comments