layout | title | date | place | tags | description | keywords | |||||
---|---|---|---|---|---|---|---|---|---|---|---|
post |
Maybe DSL Is Not Such a Good Idea? |
2016-01-08 |
Kyiv, Ukraine |
architecture |
DSL is a hype for the last few years, but is it
really such a good idea that may help us
make code cleaner?
|
|
Using DSL (Domain Specific Language) instead of configuration is a very popular concept. However, I don't really like it. I'm not a big expert, since I know just a few DSLs, but my experience is mostly negative. As I see, DSL
Again, I'm not a big expert in DSLs. I will just speak about my personal experience. Let me show you a few examples first, to demonstrate what bothers me most. The first example is from nokogiri, a Ruby library for building XML documents:
{% highlight ruby %} {% endhighlight %}
This is another one: