4 ms·
JS is actually not that great for this IMO. You probably need an NPM package to even deal with YAML because JS has a shitty standard library. Sticking to a scr
by Draiken 3y ago
JS is actually not that great for this IMO. You probably need an NPM package to even deal with YAML because JS has a shitty standard library.
Sticking to a scripting language with a strong standard library is way better.
Any unix system can get Ruby/Python and read/write YAML/JSON immediately without caring too much about versions.
Of course in today's upside down world most developers seem to only know JS, so it would at least be "familiar". Still a bad choice in my view.
The way this industry is going, give it a few years and we'll have React-Kubernetes for generating templates. And I wish I was joking.
- mark_and_sweep 3y agoParent is talking specifically about writing JSON, not YAML.
- Draiken 3y agoYeah, but the article is about YAML and my original comment was about configuration in multiple formats. So, to clarify, for JSON JS is definitely not the worse option. For me though, even for JSON, you have much better options.