4 ms·
I think that using some DSL rather that JSON will make it more obscure, since a lot more people are familiar with JSON coming from front-end development and/or
by gbaygon 9y ago
I think that using some DSL rather that JSON will make it more obscure, since a lot more people are familiar with JSON coming from front-end development and/or Node. If you want a big userbase and more potential contributors is good to stick to what everybody is using.
(Reading my own answer I would be swearing at anyone that told me that about an XML config file a couple of years ago)
Edit: redaction
- masukomi 9y agofor the others who don't know the history.... (despite your added comment) You can take what you've said, replace "JSON" with "XML" and you've got an explanation for Maven and all the other Java tools with a ridiculous amount of logic shoved into some generic markup format that was never intended for it. History has shown that it sucks to deal with. XML was the hot, "obvious", "everybody knows it", format of its day. I agree that JSON is, in most uses, a hell of a lot better, but, like XML it is a terrible place to be defining logic. It really needs to be something that is actually designed to encode logic, not a data structure format. A custom DSL is a decent, and probably very easy (for users) idea, but if the author was really not interested in the design and debugging of such a thing then you could use LUA or some other embedded language.
- neuland 9y agoYou explained this way better than I did. It's not the configuration that I had issues with. Rather, it's the triggers/rules. I think I even mentioned embedded JS or Lua in some other comment.