• 1 Post
  • 60 Comments
Joined 2 years ago
cake
Cake day: June 30th, 2023

help-circle






  • I feel I spend more time iterating yaml.
    There isn’t any tooling that actually helps you write it.

    I feel like there is a gap in the market for a solution that uses typescript, typed python or some other type-able scripting language, which then generates the yaml files.
    A language that has language servers, intellisense, all the modern dev tools. Schemas are provided as simple type descriptors. And whatever script you write then produces the correct result.
    Some sort of framework on top of that to provide an opinionated workflow, and some tooling to lint/validate/produce.
    And the result is yaml files which can be checked/diffed against in-place config, and version controlled for consistency.


  • I guess it’s like HTML if it tried to also adopt it’s own scripting language. Whereas JS interacts with the HTML DOM. Sure, it has quirks, but essentially modified a config.

    I’ve never found a nice way writing YAML with variables and configurability.
    Trying to use yaml to natively describe how a yaml config should be produced is broken. It diverges from the underlying schema, and (because it’s .yaml) isn’t distinguishable from any other yaml.
    Things like helm treat yaml as a template. And I don’t think language servers & tooling are up to scratch yet (happy to be corrected). So basic yaml formatters shit the bed.

    Yaml is a computer readable config file that tries to be human readable, and fails at being actually useful.

    Why projects try and make it useful, I will never understand.

    I honestly think generating yaml from something like python would be a million times easier.
    But then tools like ansible adopt yaml to essentially be a scripting language. As opposed to creating an actually decent solution that uses both python (to generate) and yaml (to apply).
    Or whatever language.


  • towerful@programming.devtomemes@lemmy.worldKeep it simple
    link
    fedilink
    arrow-up
    65
    arrow-down
    4
    ·
    2 months ago

    uses yaml for scripting so it’s clean and readable.

    Eh…

    I guess yaml is fine.
    I hate the significance of whitespace, and the fact that I cannot find any editor that can auto-format. Which are both related, I guess: there is no way to know a yaml document is actually correctly formatted without knowing the intended schema.

    Whereas JSON doesn’t have this ambiguity. But JSON has it’s own drawbacks.



  • Again, that’s their game plan.

    Federating with certain instances increases their moderators workload. Their moderators/admins are expected to perform at a high level (provide a safe place).
    Beehaw respects their moderators/admins. So without the adequate moderation tools, defederation is pretty much their only option.
    They are considering other community platforms. They are hoping federation/Lemmy works for them, but they aren’t willing to compromise on their community goals


  • Beehaw gets a pass because they are trying to make a safe space. It’s literally their motive. The mods there have repeatedly said they are anti-free-speech, but they are massively inclusive (until that inclusivity hurts someone else, IE they don’t include transphobes, homophobes, Nazis etc).
    Beehaw is a really friendly and welcoming place, they have great discussions, posts etc. Just… Treat everyone like a human, and don’t be a cunt.