> Djikstra
Dijkstra. Please!
31–40 of 173 posts
> Djikstra
Dijkstra. Please!
I've been playing with ways of entering test data for years. At Triggerz where I have worked, we use Excel heavily. That works really well but I have to open Excel or LibreCalc to edit the files, which feels really slow and annoying compared to all other files that I can keep in my editor. There is a read-only plugin for VSCode but not yet one that lets me edit.
Markdown tables are quite easy to write when the editor supports them (i.e. auto-formatting), and work pretty well for me.
I really want a good "universal" configuration language (like https://dhall-lang.org/ ) that can be used to generate arbitrary text files (e.g. nginx configurations, JSON, YAML, etc.)
You want to see a real abuse of YAML? Take a look at SaltStack's Jinja rendered YAML. I just grabbed a random forumla as an example: https://github.com/saltstack-formulas/openssh-formula/blob/m...
Where's the abuse? They're just generating a YAML with Jinja2. Is there something egregious about their YAML structure?
You can actually use Python as a configuration file pretty well, if you need more complicated logic and macros. Otherwise, sticking to a toml or ini file is my preference.
Are you gonna embed a Python interpreter into your C# programs though? Better to use something like dhall that's at least open to being loaded from multiple languages.
You want to see a real abuse of YAML? Take a look at SaltStack's Jinja rendered YAML. I just grabbed a random forumla as an example: https://github.com/saltstack-formulas/openssh-formula/blob/m...
Where's the abuse? They're just generating a YAML with Jinja2. Is there something egregious about their YAML structure?
And if I'm writing code, it should look like code you'd actually want to read and edit. Not something with hacked-on delimiters {%- all over the place %}.
You want to see a real abuse of YAML? Take a look at SaltStack's Jinja rendered YAML. I just grabbed a random forumla as an example: https://github.com/saltstack-formulas/openssh-formula/blob/m...
I don't understand why people use a markup language when they need a programming language. I mean, sure, you can convert one into the other syntax-wise, both form trees, but what do you gain?
Please don't give markup a bad name because of YAML, or the clusterfuck linked by GP.
I really want a good "universal" configuration language (like https://dhall-lang.org/ ) that can be used to generate arbitrary text files (e.g. nginx configurations, JSON, YAML, etc.)
Sure, the text format is quirky, but so far it works quite well for me and protobuffers (v3) can be easily rendered as JSON.
OK, I totally get the argument that YAML is for data and not programming. But I'm not sure the line between them is always clear. For example: I used to use YAML to define field mappings between external data and internal models in a Rails application. like: - src: fieldA dest: field_a filter: name_of_some_filter_function Is this programming? Data? Really it's configuration for an import library, but I find the line…
In your case, it can be defended as documentation for data mapping, but executable scripts are rarely so.