I never could get Nix working but maybe someone will

You are viewing a single thread.
View all comments
13 points

YAML?? (╯°□°)╯︵ ┻━┻)

permalink
report
reply
32 points
*
what:
  is:
  your:
    - problem
    - with:
      YAML
# At least you can have comments unlike in json. Who need comments in a config file anyway.
permalink
report
parent
reply
12 points

Toml is superior to all.

permalink
report
parent
reply
9 points

Hey did you know that any JSON file is also a valid YAML file? I bet you’ll love YAML a lot more now that you have this information

permalink
report
parent
reply
11 points

Nothing too major about how it’s usually used, but the yaml spec does allow arbitrary code execution when parsing a file and relies on the parser to have that feature disabled: https://en.m.wikipedia.org/wiki/YAML#Security

That’s why for python, yaml.save_load() is a thing. That’s fine for your local config files and may even be a feature for you, but it shouldn’t be used to exchange information between services.

permalink
report
parent
reply
8 points

My general view is similar, yaml is better if it should be written by humans, json is better if it should be written and read only by a machine. but hyprspace uses json for configuration, so I don’t really understand cellardoor’s comment

permalink
report
parent
reply
1 point

nit: you mean yaml.safe_load().

permalink
report
parent
reply
5 points

Careful. The yaml cult will come after you in a long and formless column, and only self destruct when one of them is a step too far to the left.

permalink
report
parent
reply

Selfhosted

!selfhosted@lemmy.world

Create post

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don’t control.

Rules:

  1. Be civil: we’re here to support and learn from one another. Insults won’t be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it’s not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don’t duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

Community stats

  • 3.7K

    Monthly active users

  • 2K

    Posts

  • 23K

    Comments