Category Archives: YAML

What is YAML? For Dummies

What is YAML?
It is a format for the exchange of information that facilitates the mapping of more complex data structures in an easy readable plain text document.

What is the meaning of YAML?
It is a recursive acronym for “YAML Ain’t Markup Language”.
What is yaml used for?
To define configuration files or other documents.

Pro
Simple structure.
Easily readable documents.

Contra
Even when you can serialized(*) objects with YALM, is slower so other formats; so JSON is used for this.

How look a YAML file?
The file structure is key-value type.
Indentation is also important to define the structure of parent-child tree.

Example
Product
Description: box
Color: black
Price: 14.99

(*) Serialized objects: write the structure of a string object so it can be retrieved later

 

Sources:

 

Advertisements
Tagged , ,