Past me would have never believed that optimizing my body would also optimize my mind. I was a programmer. The body was just the thing that carried the laptop.
Then I started noticing a pattern. The days I coded best weren’t the days I had the most time, or the most coffee, or the most motivation. They were the days I felt good. Slept well, eaten clean, moved that week. On those days, hard problems felt tractable. On bad days, the same problems felt like walls.
It took longer than it should have to realize this wasn’t a coincidence.
How your state changes how you think
There’s a specific feeling to coding when you’re stressed or depleted. You stop thinking architecturally. You stop asking “what’s the right solution” and start asking “what’s the fastest thing that makes this stop hurting.” You monkey patch. You add the if statement instead of fixing the underlying model. You know it’s wrong while you’re writing it, but you do it anyway because your brain doesn’t have the bandwidth for anything better right now.
I’ve shipped code I’m embarrassed by in that state. We all have.
Contrast that with the days when you’re genuinely well-rested and clear-headed. Complex problems don’t disappear, but they shrink. You can hold more context in working memory. You zoom out naturally — you see the shape of the problem before you start solving it. The fix that seemed like it would take three hours resolves into something obvious in twenty minutes because you’re approaching it from above rather than fighting it head-on.
Stress narrows your thinking. Physical wellbeing expands it. That’s not a metaphor — there’s real neuroscience behind it — but more practically, it’s just something you feel once you’ve experienced both ends of the spectrum enough times to compare them.
Cutting alcohol
Almost three years since my last drink. I don’t miss a minute of it.
This is the change that surprised me most. Alcohol wasn’t something I thought was impacting my cognition because I was never drinking heavily — a beer here, a few drinks on a weekend. The kind of drinking that’s completely normalized and that nobody around you questions.
But the sleep degradation is real even at low amounts. You fall asleep faster and you wake up feeling like you slept, but the sleep quality is measurably worse — less deep sleep, more fragmented. And poor sleep compounds. A few nights of degraded sleep and your baseline shifts downward without you fully noticing, because the degraded baseline starts to feel normal.
Once I stopped entirely, the clarity took a few weeks to fully show up, and then it just… stayed. I can think further ahead. I’m less reactive. I recover from hard weeks faster. It’s one of the highest-return changes I’ve made, and the thing I gave up doesn’t feel like a sacrifice at all.
Weight training
Four to five sessions a week. Not because I’m trying to look a particular way — though that’s a side effect — but because of what it does to my baseline state.
Consistent resistance training reduces resting cortisol, improves sleep architecture, and seems to do something for cognitive sharpness that’s hard to quantify but easy to feel. My best thinking often happens in the hour or two after training. Problems that felt stuck come unstuck. I’ve solved more bugs on a walk home from the gym than at my desk staring at the screen.
The mechanism probably has something to do with BDNF (brain-derived neurotrophic factor), which resistance training reliably elevates and which supports neuroplasticity and memory. But I didn’t start training for the neuroscience — I started for the energy, and the cognition improvement was the thing that made me take it seriously as a long-term commitment.
Cold swims
This one is harder to explain without sounding like you’ve joined a cult.
Cold water swimming silences the voices in a way nothing else does. Not quiets them — silences them. When you get into cold water, your body has exactly one priority, and it isn’t whatever you were anxious about before you got in. The mental chatter, the background hum of stress, the problems you’ve been chewing on — all of it just stops. You are present in a way that’s almost forced on you. For the rest of the day, that silence tends to linger.
The feeling afterwards is hard to overstate. There’s a specific kind of clarity and confidence that follows a cold swim — like you can walk into any problem and it will eventually yield. I don’t know exactly why it produces that feeling, but it’s consistent enough that I trust it.
The science backs up what you feel. Cold water immersion triggers a significant release of norepinephrine — studies have shown increases of 200–300% — which is the neurotransmitter associated with focus, attention, and mood. It also elevates dopamine in a sustained way, not the spike-and-crash you get from most dopamine hits, but a baseline elevation that persists for hours. There’s also evidence it reduces cortisol over time with regular exposure, which feeds directly back into the stress-and-code-quality connection I mentioned earlier.
There’s a reason the mental health research on cold exposure keeps producing positive results. It’s a genuine physiological shift, not a mindset trick.
Unfortunately this is a buff I can only leverage in winter, when the water is truly cold. The rest of the year the open water gets too warm to produce the same effect, and it just becomes a swim. Still nice, but not the same thing. I don’t do ice baths — I swim in cold open water when I can, or use a cold shower when I can’t. The threshold seems to be around 15°C or below for the norepinephrine response to kick in meaningfully. Below 10°C and the effect is more pronounced. You adapt over time, which is part of what makes it interesting — the mental discipline of getting in when you don’t want to builds its own kind of resilience that carries over into other things.
The supplement stack
I’m skeptical of most supplement marketing, so I’ll only mention what I’ve actually noticed a difference from.
Morning:
- Alpha-GPC — a choline precursor. I take this for focus and working memory. Choline is a precursor to acetylcholine, the neurotransmitter most associated with learning and attention. I notice a real difference on days I take it versus days I don’t, especially during deep work sessions.
- Creatine — everyone knows creatine for strength training, but the cognitive benefits are underrated. It supports ATP synthesis in the brain the same way it does in muscle tissue. There’s decent research behind it for processing speed and short-term memory. I take it daily regardless of whether I’m training.
Night:
- Magnesium threonate — this is the form of magnesium that crosses the blood-brain barrier most effectively. I use it for sleep quality and to reduce the background mental noise that makes it hard to fall asleep after a late coding session. It’s noticeably different from standard magnesium glycinate.
- GABA — taken before bed. Works synergistically with the magnesium for sleep onset. Whether the effect is direct or partially placebo I genuinely can’t say, but the sleep I get on it is consistently deeper.
These four, combined with the training and the diet, are what makes my brain feel like it’s running well. None of them individually is magic. Combined with everything else, they’re part of a system.
Diet: mostly subtractive
I don’t follow a named diet. The main principle is just keeping processed food to a minimum — not because I’m precious about it, but because the effect on energy and cognition is obvious once you’ve removed it for long enough to notice the baseline.
Processed food doesn’t just affect your body. It creates blood sugar swings that translate directly into focus crashes in the afternoon, sluggishness that makes everything feel harder than it is, and a kind of low-level inflammation that takes weeks to clear once you start eating cleaner. The brain runs on what you eat. Junk inputs, junk output.
The specifics: high protein, real food as much as possible, limit refined carbs, don’t drink calories. Nothing exotic. The boring fundamentals work better than any optimized protocol.
The thing past me would have found ridiculous
I used to think the “mind-body connection” was soft, vague self-help language. The kind of thing that belonged in a different conversation from serious work.
What changed my view wasn’t a book or a philosophy — it was just paying attention. Watching the correlation between how I took care of myself physically and the quality of my thinking become undeniable over time. The connection isn’t vague at all. It’s measurable in the clarity of the decisions I make, the quality of the code I write, how fast I can reason through a complex problem.
Your brain is a physical organ running on blood, sleep, nutrients, and neurochemistry you largely control. Treating it like it floats free of the body it lives in is just leaving performance on the table.
The irony is that all the productivity optimization I used to spend time on — task systems, focus techniques, better editors, faster tools — was working around the underlying problem rather than addressing it. The highest-leverage thing I could do for my output wasn’t a new workflow. It was taking the hardware seriously.
Think of it this way: the body is the hardware, the mind is the software. We spend money on extra RAM, better GPUs, the latest Claude Opus API credits — trying to squeeze more out of our tools. But the actual machine running all of it? We ignore it. The thing that nobody tells you is that you can upgrade both the hardware and the software for almost nothing. Sleep is free. Cold water is free. Lifting heavy things is cheap. Cutting out alcohol saves you money. The ROI on any of this dwarfs what you’d get from a faster laptop.