DEV Community

Discussion on: Introduction to YAML

Collapse
 
emptyother profile image
emptyother

So YAML does for JSON what Markdown did for HTML.

But I'm no fan of YAMLs "no tabs" rule or the "as many spaces as you want" rule. Seems a odd choice backed by a flimsy excuse.

Collapse
 
paulasantamaria profile image
Paula Santamaría

I found those a bit odd too at first. However, the YAML specification addresses the no tab rule:

Note that most modern editors may be configured so that pressing the tab key results in the insertion of an appropriate number of spaces.

And I found that to be true for VSCode at least.

And about the number of spaces, I just handle that myself and keep it consistent. Haven't had an issue with that, to be honest.