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 , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: