Developer Sleep: Why Hours Don't Tell The Whole Story
Sleep is individualized and depends on three things: age, physical exertion, and how much your brain is running.
Younger Ages
When you're young you abuse yourself—alcohol, late meals, physical work (gym, labor, sex). All of this loads your body, so you need more sleep hours to actually recover—usually 8-10 hours.
Older Ages
As you age, less physical work, fewer extreme habits. Your body doesn't get "charged" as much, so it recovers faster—often 7-8 hours is enough.
The Developer Problem
But here's the kicker: no matter how much you sleep, if your brain is running with the next feature, architecture design, debugging—you're not recovering. Your brain stays "active" and you exhaust yourself *during* sleep instead of recovering.
That's why you can sleep 8 hours anxious and feel more burned out than 5 hours without stress.
It's not just how many hours you slept. It's whether your brain found peace to actually rest.