@[email protected]

YAML is the worst ...
... except
everything else

by Rob Richardson

  @rob_rich

https://robrich.org/

About Me

Rob Richardson

Rob Richardson is a software craftsman building web properties in ASP.NET and Node, React and Vue. He's a frequent speaker at conferences, user groups, and community events, and a diligent teacher and student of high quality software development. You can find this and other talks on https://robrich.org/presentations and follow him on twitter at @rob_rich.

YAML

Yet another markup language

-yaml.org

YAML

Super-set of JavaScript*

 

* with completely different syntax

YAML

A human-friendly data serialization [format] for all programming languages.

-yaml.org

Data Storage Formats

How did we get here?

Analyzing Data Formats

CSV

CSV

data types
schema validation
terse
nested data

CSV

XML

XML

* data types
schema validation:
XSD
terse
nested data

XML

SOAP

HTML

JSON

JSON

data types
* schema validation:
JSON Schema: bolt-on
terse
nested data

JSON

YAML

YAML

* data types
* schema validation:
YAML Schema: bolt-on
terse
nested data

YAML

Data Formats

Format Data Types Schema Validation Terse Nested Data
CSV
XML *
JSON *
YAML * *

YAML

Yes, it's white-space significant.

So is Python, and we love that.

Demo

YAML to JSON and back again

YAML

It's the worst ...

... except everything else.