logoalt Hacker News

YAML? That's Norway Problem

12 pointsby theanonymousonelast Thursday at 4:18 AM3 commentsview on HN

Comments

nalekberovtoday at 12:48 AM

YAML is the worst format.

You are literally one missing tab away from breaking your entire configuration file. Yet the industry keeps pushing it for the sake of “simplicity” - for small configurations sure, it’s fine, but many hundred lines of config entries? Good luck fixing it, if something goes wrong.

I still can’t get why software engineers suddenly started to hate XML.

show 3 replies
al_borlandlast Thursday at 4:33 AM

For yaml in the context of Ansible, this was recently fixed a little while back in v2.19.

They got more strict about booleans. For those who need/want the old behavior, ALLOW_BROKEN_CONDITIONALS can be set in the ansible.cfg or `is truthy` can be used for python-like version, but it becomes explicit vs being implied.

rpreethalast Thursday at 6:49 AM

Was backward compatibility the main reason YAML kept these implicit conversions for so long, or was there a stronger usability argument originally?