Login
You're viewing the y.diskcat.com public feed.
  • Dec 9, 2025, 5:13 PM

    YAML is such a stupid, stupid format for human-written config files. I've just spent an hour finding a two-space "error" in netplan. Using spaces (or tabs) for semantics was (and still is) a mistake in makefiles, it was a mistake in Occam, it's still a mistake in Python and it's a mistake in YAML. It's a mistake whenever humans are supposed to write these files.

    💬 3🔄 0⭐ 0

Replies

  • 💬 1🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • Dec 9, 2025, 7:14 PM

    @sten (at my workplace) we moved from a internal format for configuration to YAML - with the hope the situation gets better ... and it partially is
    (e.g. having schema available in the editor)

    💬 1🔄 0⭐ 0
  • Dec 9, 2025, 7:17 PM

    @lobingera I'm sure having a language with a schema is better than having one with none. But me, I'm a fan of small domain-specific languages. I could spot mistakes in sendmail.cf from a mile away (not literally, obviously, but you get my drift). Try that with netplan config files or ansible playbooks.

    And the amount of stuff you get for free with a well-designed domain-specific language is awesome. But these days, people think of config files only as key-value stores.

    💬 0🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • Dec 9, 2025, 6:59 PM

    @pft If I'm not mistaken. FB have their own flavour of PHP, too. So their stuff runs on FB-PHP and FB-YAML. Serves them right, I guess!

    💬 0🔄 0⭐ 0
  • Dec 21, 2025, 8:19 PM

    @sten so true!
    I am using whitespace-mode in Emacs and an on-line validator, but it often takes me a couple of iterations before getting it right.
    Why do not they use curly braces ....

    💬 0🔄 0⭐ 1
  • Dec 22, 2025, 9:37 AM

    @BrunoLevy01 Exactly. Why something that isn't visible should have semantic value for something that humans are supposed to write is beyond me. The same thing applies to Python indentation and makefiles: "Oh, the indentation looks right in your editor, does it? Well, I'm here to tell you that these are SPACES, not TABS as required, and that therefore your makefile won't run as you thought it should!" Or "Oh, you're trying to paste Python code in here? Fat chance!"

    💬 0🔄 0⭐ 0