10

YAML configuration is more difficult to do than the actual programming itself.

JSON and ini files are way better.

Comments
  • 10
    Let me welcome you to TOML.
  • 3
    Thankfully python made me prepared for that

    I find YAMLing being easy.
  • 1
    Json is an unstructured mess
  • 1
    Why is json easier for you than yaml? The indentation?
  • 7
    The mere fact that you can have comments in YAML makes it a thousand times better for configuration than JSON.
  • 0
    i always disliked yaml.

    then i built a kubernetes cluster for which i had to write a lot of yaml stuff. now i like it.
  • 1
    I hate yanl when editing a file in terminal indentation is annoying but in an editor like vs code it's fine.
  • 1
    @vintprox TOML has a horrible way of representing nested objects
  • 2
    @eo2875 Then don't use TOML for that 🤷🏻‍♂️
  • 0
    @koes you idiot you do have comments in json
  • 2
    @petergriffin go ahead and show me a comment is JSON.
  • 1
    @petergriffin comments in what again?
  • 2
    Isn't YAML a superset of JSON?
  • 1
    Comments in JSON are definitely NOT a thing at least not part of official specs anyway
  • 0
    @korrat for what reason? It's not backwards-compatible with JSON.
  • 2
    I'll take ini, toml, json or yaml any time over fucking xml configs.

    Fuck xml and those coworkers who decided to use it in 2021.

    N.B.: to me json and yaml are pretty much the same. The indentation is not a problem.
  • 0
    @PepeTheFrog xml for the sake of "hey we used xml, its standardized and it's cool..." Like the androidmanifest and other configs...another xml bloat are the api responses.
  • 0
    @vintprox Please elaborate? To quote from the YAML spec: "every JSON file is also a valid YAML file".
  • 1
    This website is a helpful cheatsheet for YAML multiline strings: https://yaml-multiline.info
Add Comment