God damn I hate YAML. It's an abysmal format for anything more than one line. Trying to grok some Home Assistant automations and tracing the indentations and weird - and * grouping is horrible. In Python indenting with whitespace is fine as you rarely have more than a few levels of indentation, but YAML config files can be really deep.
I guess this is a Microsoft format?
[#]yaml #garbage #homeassistant
=> More informations about this toot | More toots from chakie@toot.community
That said, the way automations are configured in Home Assistant must be one of the worst ways to configure things I've seen. YAML is definitely not suitable for this. It's especially true when you edit in an environment that has no context sensitive help.
=> More informations about this toot | More toots from chakie@toot.community
@chakie That last line 😆
=> More informations about this toot | More toots from notnorm@fosstodon.org
@notnorm If it's awful it usually comes from Microsoft.
=> More informations about this toot | More toots from chakie@toot.community
@chakie YAML is fine as a general purpose serialization, it is far less good when it is used as a pseudo programming language. Both Homeassistant and Ansible have taken that second use case to the extreme and it is simply maddening.
=> More informations about this toot | More toots from drawks@hachyderm.io
@drawks @chakie I feel the same about the pseudo-programming angle. I’ve been using Ansible quite a bit lately and it drives me crazy how playbooks are basically code crammed into a config file. One that looks like Python if you squint, but really isn’t. 🤪
=> More informations about this toot | More toots from dmnelson@mastodon.social This content has been proxied by September (ba2dc).Proxy Information
text/gemini