Exploring Data Serialization With YAML

Hey guys! And welcome to Young Minds learning lab ! We’re gonna learn everything about YAML; it is such an interesting and easy topic to learn.  

 
 
 
Video file

We are going to learn the below topics in today's session.

 

YamlIntroduction

 

Let’s first try to understand what YAML is and what problem it is trying to solve. YAML is a data serialization language. It is commonly used for configuration of files and applications where data is being stored and transmitted. Real-life use cases, yaml is popularly used in Drupal, Docker, Django, Ansible, Kubernetes etc. There are three main serialization language commonly used, JSON, XML and YAML. The reason for YAML popularity over other two is its easy syntax which makes it easier not only for people with programming background but also for people with non-programming background.


YAML natively encodes

 
•    Scalars such as strings, integers, and floats [enclosed in double-quotes(“”), single-quotes(‘’)]
•    Lists
•    Associative arrays such as maps, dictionaries, or hashes

It is intended to be read and written in streams. 

We're going to take a look at the structure of YAML files, we'll see how indentation works with the YAML and the rules that apply. We'll try out different ways of using quotes and the advantages and disadvantages to each. We're going to take a look at multi-line values and how YAML accommodates the different options. We'll look at how true or false can be represented in YAML. Finally, we're going to be looking at Arrays.

Due to its easiness its popularity has been increasing. It’s now used in major DevOps tools such as Docker, Ansible and Kubernetes. To comprehend it better I have drawn specific use cases for you along with Docker, Ansible and Kubernetes. It will provide you better prospective of its utilities in real life programming. 

Yaml UseCases

 

At the end let me summarize what we have learned in today's yaml session with the help of below diagram. I am sure with this learning session it will take you long way to design, many more use cases around Dockers, Ansible, Kubernetes, Drupal, Django and so many other interesting framworks. It will open up new opportunities in DevOps and other innovative areas of development. 

 

Summary of Today's Learning Session

YamlSummary

 

Thank you for joining, in my next series I will come back with more divergent and interesting topic. I am sure it will be a great and enriching learning experience for you. Let's innovate, challenge & broaden our intellectual horizons and make it an interesting, joyous learning experience.

Till then, let's enjoy every moment !  😀