JSON, CSV, XML, YAML: Data Formats Compared
Why we need structured data formats, how JSON, CSV, XML, and YAML differ, and when to choose each one.
Ask someone their age and you'd think the answer is straightforward. But depending on where in the world you are, the same person born on the same day can be 0, 1, or even 2 years old at birth. Age counting is one of those rare things that seems universal but isn't.
The system used across most of the world today is simple: you are 0 at birth and gain one year on each birthday. A baby born on March 15 is 0 years old until March 15 of the following year, when they turn 1.
This system counts completed years of life. When you say “I'm 25,” you mean you've fully completed 25 trips around the sun and are working on your 26th.
In the traditional East Asian system (used historically in China, Japan, Korea, and Vietnam), age works differently:
This means a baby born on December 31 is 1 year old at birth and turns 2 the very next day (January 1). Under the Western system, that same baby would be 0 for another 364 days. The maximum gap between the two systems is 2 full years.
| System | At birth | Ages on | Used in |
|---|---|---|---|
| Western | 0 | Birthday | Most of the world |
| East Asian (traditional) | 1 | Lunar New Year | China, Vietnam (culturally) |
| Korean (traditional) | 1 | January 1 | South Korea (until 2023) |
Culturally, “Korean age” still lingers in everyday conversation. When Koreans meet someone new, they often ask birth year (not age) to determine social hierarchy and honorific language. The legal change didn't erase centuries of cultural practice overnight.
About 5 million people worldwide are born on February 29 — a date that exists only every 4 years. When is their legal birthday in non-leap years?
The difference matters for age-gated milestones: driving licenses, voting eligibility, retirement benefits, and insurance rates all depend on precise legal age.
Age isn't just a number — it's a legal and financial trigger:
Something as simple as “how old are you?” turns out to have different answers depending on where you were born, what calendar you use, and which legal system is asking. Age is a cultural construct as much as a biological fact.
Why we need structured data formats, how JSON, CSV, XML, and YAML differ, and when to choose each one.
IPv4 vs IPv6, public vs private addresses, how geolocation databases map IPs to locations, and how VPNs change your visible IP.
Simple vs compound interest, the Rule of 72, how compounding frequency matters, and why APY and APR are not the same thing.