by gervwyk on 2/24/24, 8:26 AM with 28 comments
by pointlessone on 2/24/24, 11:18 AM
by zamalek on 2/24/24, 10:07 AM
Avoiding YAML is this way has saved my sanity on more than one occasion.
by YouWhy on 2/24/24, 11:57 AM
Consider this pseudocode expression:
:Div{Hello :Span(style='bold'){world}} # expression type: HTMLDOMNode.Div
This is immensely powerful and saves a ton of time/bugs especially when compared to the alternative of string interpolation.
I know somebody once did XHP on Python, but regrettably this work was abandoned.
by zer00eyz on 2/25/24, 9:24 PM
I read it if only to glean why anyone would do this. I learned nothing of the sort of person who would use Javascript to structure a YAML config.
10 years ago this article would have been "Used PHP for structured YAML config" and there would have been a minor riot of people poking fun at the article writer for attempting such sillyness. (And I say this someone who still made my money on PHP 10 years ago).
We got soft somewhere along the way and stopped calling out silliness.
by taspeotis on 2/24/24, 9:53 AM
nindent makes me yell especially.
by j-krieger on 2/24/24, 10:36 AM
What‘s wrong with configuring our platforms with a real, perfectly working programming language? I think the author had a great point with the schema being disconnected from the configuration file, but he missed the big picture with JSX: JavaScript (or TypeScript) can be perfectly used to emit JSON. JS tooling works with .config.js files.
Why must I experience the living hell of helm charts and kubernetes configuration file templates, when I could just emit my config with my favorite programming language?