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.
Step on a scale and you get one number. But that single number tells you almost nothing about your health, fitness, or how many calories you need. Three metrics — BMI, BMR, and TDEE — paint a far more useful picture. Here's what each one means, how it's calculated, and where each falls short.
BMI is the simplest health screening metric. It uses only two inputs — height and weight — to estimate whether someone is underweight, normal weight, overweight, or obese.
BMI = weight (kg) / height (m)²
Example: 75 kg, 1.78 m tall
BMI = 75 / (1.78 × 1.78) = 75 / 3.168 = 23.7| BMI range | Classification |
|---|---|
| Below 18.5 | Underweight |
| 18.5 – 24.9 | Normal weight |
| 25.0 – 29.9 | Overweight |
| 30.0 – 34.9 | Obese (Class I) |
| 35.0 – 39.9 | Obese (Class II) |
| 40.0+ | Obese (Class III) |
Despite these limitations, BMI remains widely used because it's fast, free, and correlates reasonably well with health outcomes across large populations. It's a screening tool, not a diagnosis.
BMR is the number of calories your body burns at complete rest — just to keep you alive. Breathing, circulating blood, maintaining body temperature, and cell production all consume energy. For most people, BMR accounts for 60–75% of total daily calorie burn.
The Mifflin-St Jeor formula (1990) is considered the most accurate BMR estimate for most adults:
Men: BMR = (10 × weight in kg) + (6.25 × height in cm) - (5 × age) + 5
Women: BMR = (10 × weight in kg) + (6.25 × height in cm) - (5 × age) - 161
Example: 30-year-old male, 80 kg, 180 cm
BMR = (10 × 80) + (6.25 × 180) - (5 × 30) + 5
= 800 + 1125 - 150 + 5
= 1,780 calories/dayThe older Harris-Benedict equation (1919) tends to overestimate by 5–15%, which is why most modern calculators default to Mifflin-St Jeor.
TDEE is your actual daily calorie burn — BMR plus all movement, exercise, and the thermic effect of food (digestion itself burns calories). It's calculated by multiplying BMR by an activity factor:
| Activity level | Multiplier | Example |
|---|---|---|
| Sedentary | 1.2 | Desk job, no exercise |
| Light | 1.375 | Light exercise 1–3 days/week |
| Moderate | 1.55 | Moderate exercise 3–5 days/week |
| Active | 1.725 | Hard exercise 6–7 days/week |
| Very active | 1.9 | Athlete or physical job + training |
Using our earlier example (BMR of 1,780) with moderate activity: TDEE = 1,780 × 1.55 = 2,759 calories/day.
Weight change follows a simple energy balance:
The “3,500 calories per pound” rule is a simplification — metabolism adapts over time, and water weight fluctuates daily — but it provides a useful starting framework.
BMI tells you where you stand relative to population averages. BMR tells you what your body needs just to exist. TDEE tells you what your body needs to fuel your actual life. Together they form the foundation of any evidence-based nutrition plan.
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.