this post was submitted on 01 Feb 2024
41 points (86.0% liked)

Programming

21381 readers
346 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] matcha_addict@lemy.lol 0 points 1 year ago (4 children)

Why would one pick toml over yaml?

[–] corsicanguppy@lemmy.ca 9 points 1 year ago* (last edited 1 year ago) (2 children)

Xkcd 927?

Also yaml is ugly as hell and I'm okay avoiding it.

[–] gornius@lemmy.world 6 points 1 year ago* (last edited 1 year ago) (1 children)

What?

It's simple and readable. You literally put somebody that has never coded in their life, show them the YAML file and they will probably get it. Worked both with my boss and my girlfriend.

In Toml there are too many ways to do the same thing, which I don't like. Also unless you know it deeply, you have no idea how the underlying data structure is going to look.

[–] eager_eagle@lemmy.world 17 points 1 year ago

In Toml there are too many ways to do the same thing, which I don’t like

ha

63 different ways to write multi-line strings in YAML

[–] matcha_addict@lemy.lol 5 points 1 year ago

Yaml is already pretty popular, so I don't think 927 applies here. It's actually more common in newer projects than toml.

Which begs the question, should I go with the flow or is there good reason to go with toml?

[–] jkrtn@lemmy.ml 7 points 1 year ago

Perhaps they're Norwegian.

[–] Lmaydev@programming.dev 4 points 1 year ago

Significant whitespace is the devil's play thing.

[–] eager_eagle@lemmy.world 3 points 1 year ago* (last edited 1 year ago)

XML < YAML < TOML < possibly others

noyaml.com