Self Devving

← Blog

Five Sleep Habits That Compound Like Good Code

Sleep is the lever every other habit depends on. Five small defaults that compound into a different decade.

Self Devving · 2026-05-05

Hustle culture treats sleep like overhead. Cut it, gut through it, brag about how little you need. Most people running this strategy are burning out and underperforming the well-rested colleague they think they're outworking. Sleep is the highest-leverage habit you have. Five rules that compound.

First, wake up at the same time every day

Pick a fixed wake time and hit it on weekends too. The body anchors its sleep system to wake-up, not bedtime. Inconsistent mornings give you weekly jet lag.

Matt Walker, the Berkeley sleep researcher, calls consistent wake time the most important sleep variable. Hit it for a year and your bedtime drifts toward optimal on its own.

Second, get morning sunlight in the first hour

Ten minutes of direct outdoor light, eyes open, no sunglasses, ideally before nine. This sets the clock that decides when you'll be sleepy tonight.

Andrew Huberman built his entire morning protocol around this. The cost is ten minutes outside. The payoff is sleep onset without melatonin or hacks.

Third, make the bedroom cool, dark, and dull

Drop the temperature. Black out the room. Move screens out. The body uses cool, dark, and dull as the signal it can fully shut down.

LeBron James reportedly spends over a million dollars a year on his sleep environment. Top athletes treat this as training, not luxury.

Fourth, no caffeine after noon

Caffeine has a half-life of five to six hours. The afternoon coffee is still in your bloodstream at bedtime, even if you fall asleep fine.

Tim Ferriss tested every caffeine window. His verdict: nothing after noon if you want deep sleep. The afternoon coffee feels free. It is not.

Fifth, treat sleep like training, not laziness

Schedule it, defend it, count it. Eight hours is your one daily input that improves every other input. Skip it and your day starts in deficit.

Roger Federer built a career on twelve hours a night. Top performers treat sleep as performance. Hustle culture treats it as weakness. It is wrong.

The takeaway

Sleep is the foundation every other habit compiles against. Skip it, the build breaks. Defend it, and your eating, your work, and your mood compound twice as hard.