DEV Community

Discussion on: YAML Tutorial | Using YAML With Python | PyYAML

Collapse
 
baso53 profile image
Sebastijan Grabar • Edited

I absolutely hate YAML. I thought it was only going to be like that only when I started using it, that it would get better with time, but it really hasn't.

My personal opinion:

  • isn't more readable than JSON
  • editor support is an abomination (VS Code and IntelliJ), it never gets the indentation right
  • extremely beginner unfriendly, I bet no one who is looking at YAML for the first won't be sure what is the syntax for what
  • a looot of stuff is valid YAML and there are many ways to write the same things (arrays, I'm looking at you), which again, leads to confusion
  • the YAML spec is HUGE and it contains the whole JSON spec inside of it, which again, just leads to confusion
Collapse
 
nicolasini profile image
Nico S___

I agree with you in the points you dislike. They are definitely an issue.
However, it is more readable than JSON for non-developers. And sometimes that is more important.

Collapse
 
developertharun profile image
Tharun Shiv

Yes Nico. You just give them a template and they will easily fill it in, in case of YAML.

Collapse
 
developertharun profile image
Tharun Shiv

Thanks for sharing your perspective Sebastijan. 🙂

Collapse
 
reactifystudio profile image
Reactify • Edited

Me too.
I find it's indentation poor. Curly braces are works for me. I can easily follow the nesting 💯