Ancestors

Toot

Written by Jan Ekholm on 2024-11-05 at 15:35

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

Descendants

Written by Jan Ekholm on 2024-11-05 at 15:37

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

Written by yaggadagga on 2024-11-05 at 15:50

@chakie That last line 😆

=> More informations about this toot | More toots from notnorm@fosstodon.org

Written by Jan Ekholm on 2024-11-05 at 16:06

@notnorm If it's awful it usually comes from Microsoft.

=> More informations about this toot | More toots from chakie@toot.community

Written by drawks on 2024-11-05 at 16:07

@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

Written by David Nelson on 2024-11-05 at 20:25

@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

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113431080200623150
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
283.157909 milliseconds
Gemini-to-HTML Time
1.314495 milliseconds

This content has been proxied by September (ba2dc).