News for hackers. Stuff that matters.
Re:Why are we templating YAML? by SamWhited on Thursday February 07, 2019 @05:19PM (#19109174)
Tools keep using it even where it's the wrong tool for the job, so someone must like it, surely?

I'm sure it will be just like XML where it's the trendy thing for a while in the early days, then everyone stops and hates it for a while. Except XML at least has a handful of applications where it's the right tool for the job (it has a nice streaming mode), YAML doesn't even have that.

Re:Why are we templating YAML? by hazz99 on Thursday February 07, 2019 @09:54PM (#19111110)
YAML is great for simple human-editable configuration files. Its very easy to write, and can be picked up quite quickly.

Opting for YAML over XML/JSON/whatever doesn't make me a tool. It made life much easier for myself & my colleagues.

Re:Why are we templating YAML? by kjeetgill on Thursday February 07, 2019 @11:16PM (#19111474)
I think they meant tools like docker or npm and stuff. Not calling people tools.
Re:Why are we templating YAML? by SamWhited on Friday February 08, 2019 @11:36AM (#19115887)
heh, I didn't even consider this interpretation of the above; sorry about that. I meant "tools like Docker keep using it", not people. But I still don't know what you're talking about; YAML has an 83 page spec that includes pointers, and uses tons of random confusing symbols. I say "maybe it's just me" in some of these posts, but I know it's not: I've watched many of my coworkers get it wrong the first time for years and then have to be corrected. A quick common example I see in CI config all the time: If I write version: 1.10, that's a number, then I decide to move to latest so I write version: 1.10.x, that's a string. Oops, we were never using version "1.10" we were using "1.1". Everything about it is implicit and bad. Now, it's easy to say "always use quoted strings", and I agree, but then why the hell does it have bare strings in the first place? That seems like an easy enough oversight or typo to make, and it will be made.