Yet another “brilliant” scheme from a cryptobro. Naturally this caused a gold-rush for scammers who outsourced random people via the gig economy to open PRs for this yml file (example)

  • toastal@lemmy.ml
    link
    fedilink
    arrow-up
    6
    arrow-down
    1
    ·
    edit-2
    8 months ago

    Depends on the use case but XML is good for markup—especially if you need extensibility.

    For config, Nickel & Dhall take the cake for being typed & having LSPs so the configuration writer can get immediate feedback about possible options (while eliminating invalid states) without requiring the manual—with configuration readers not needing to mess around with marshaling their types. Both these configuration languages let you import files & write little loops to make your config more DRY & makes maintaining large files (like say Kubernetes) easier.

    • rtxn@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      8 months ago

      XML is great if the (de-)serialization is already implemented. Otherwise traversing the document is a massive pain.

      • toastal@lemmy.ml
        link
        fedilink
        arrow-up
        3
        ·
        8 months ago

        True. Something like XPath can really help & there are use cases where that is more concise but requires loading XPath into your head like Regex (which tends to get unloaded). The extensibility shines tho as seen by XMPP continuing to this day with very good backwards compatibility with 2 decades of updates since everything in an extension to the base.