Skip to content
Published on

Health as the Foundation — Sleep, Detox, and Control

Authors

Opening: It Was Not the Code That Broke First, It Was My Body

A few years ago, there was a period when I was deep in a busy project at LINE. I held on to code until two or three in the morning, and the next morning I would walk right back into meetings. For the first few weeks, it actually felt like my productivity was climbing. It seemed like I was getting more done simply because I was sleeping less.

But at some point, strange things started happening. A variable name I clearly knew would not come to mind, and I would create absurd bugs in simple logic. I had to reread a colleague's comment in code review two or three times before it made sense. The scariest part was my emotions. A single trivial Slack message would set me off, and even when playing table tennis, I would get angry at mistakes I normally would have shrugged away.

That was when it hit me. What I was breaking was not the quality of the code, but the very instrument that was myself. We tend to think of achievement as a matter of ability or willpower. But the foundation that all of it stands on is, in the end, health. When the foundation shakes, no matter how good the things you stack on top of it, they collapse together.

This essay is not a medical paper. I am not a doctor, and nothing written here can serve as a diagnosis or a prescription. I only want to gather what I learned, as one developer, while losing my health and slowly winning it back. If you have specific symptoms or chronic problems, I ask you first and foremost to consult a professional.


Why Health Is the Foundation of Everything

Ability Only Shows on Top of Condition

Outstanding knowledge of algorithms, years of accumulated domain experience — none of it shows itself if your body and brain are not functioning properly. It is just like installing a pile of great libraries and finding that nothing runs because the runtime is dead.

I tend to frame this with a "runtime analogy." Knowledge and skill are the code, and health is the runtime that executes that code. If the runtime is out of memory or stuck in CPU throttling, then no matter how optimized the code is, it runs slowly or stalls.

Health Is the Starting Point of Control

For a while I was obsessed with the word "control." Controlling the body, controlling thoughts, controlling speech. I believed that these three things ultimately determine a person's maturity. But as time passed, what I realized was this: the starting point of all three kinds of control is health.

  • When sleep is lacking, control of the body collapses. Posture slumps, hands grow clumsy, and physical performance declines.
  • When condition is poor, control of thought collapses. Focus scatters, and negative thoughts replay on a loop.
  • When you are tired, control of speech collapses. Sharp words you normally would not say slip out of your mouth.

Health is not one item on a self-management checklist; it is the floor that holds up the whole of self-management.


Sleep: The Most Underrated Performance Enhancer

Sleep Is Not a Waste of Time

There is a subtle atmosphere in developer culture that treats "cutting back on sleep" like a badge of honor. War stories circulate about finishing a feature by pulling an all-nighter, and people even compare who slept less and worked more. I, too, was once swept up in that atmosphere.

But what sleep science says is the exact opposite. The sleep researcher Matthew Walker, in his book 'Why We Sleep', lays out how a lack of sleep broadly affects learning and memory, emotional regulation, immunity, and even decision-making. Sleep is not empty time; it is active working time in which the body consolidates what was learned during the day and repairs itself.

What Happens in the Brain While You Sleep

Sleep is not a single state but a cyclical repetition of several stages. During deep sleep (slow-wave sleep), bodily recovery and the consolidation of memory take place, and during REM sleep, the sorting of emotions and creative connections are known to occur.

I have had the experience, more than once, of wrestling with a hard bug, going to sleep, and then having the solution surface in the shower the next morning. This is not something mystical; it can be interpreted as the result of the brain rearranging information and forming new connections while you sleep. Saying "let me sleep on it" may not be laziness but a strategy.

Practical Routines to Improve Sleep

Rather than grand gadgets or supplements, the following basics made a far bigger difference.

  1. Wake up at the same time every day. Fixing your wake time, rather than your bedtime, was more effective for setting my biological rhythm.
  2. Stay away from screens for the hour before sleep. The light of bright screens and the relentless stimulation of information put the brain into a state of arousal.
  3. Keep caffeine to the early afternoon at the latest. Caffeine lingers longer than you think.
  4. Keep the bedroom dark and cool. The environment becomes a signal.
  5. If you cannot sleep, get out of bed. It is good to imprint the bed in your brain as a place only for sleeping.

Below is a simple sleep hygiene checklist I put together.

[ ] Is my wake time consistent every day
[ ] Did I reduce screens one hour before bed
[ ] Did I avoid caffeine late in the afternoon
[ ] Is the bedroom dark and cool enough
[ ] Did I get sunlight and move my body during the day
HabitShort-term effectLong-term effect
Fixed wake timeHigher morning alertnessStable sleep rhythm
Screens off before bedShorter time to fall asleepGreater share of deep sleep
Moderating caffeineFewer night awakeningsImproved sleep quality
Daytime exerciseHealthy tirednessBetter overall condition

Let me stress it again: if you have suspicious symptoms such as chronic insomnia or sleep apnea, do not try to solve them with lifestyle habits alone. Please be sure to see a specialist.


Digital Detox: The Work of Reclaiming Attention

We Are Always Connected, Yet Always Distracted

As much as sleep, what was gnawing at my health was the relentless digital stimulation. I scrolled the timeline right up until I fell asleep, looked at my phone even in the bathroom, and broke my flow over a single notification while I was coding.

Cal Newport, in 'Digital Minimalism', says that technology itself is not the bad thing; the problem is the state of being dragged around by technology without intention. The key is to ask: "Does this tool contribute to what I truly consider important?"

The Cost of Recovering Broken Focus

Once your attention scatters, it takes a considerable amount of time to return to the context of the work you were doing. The studies on interruption by the researcher Gloria Mark repeatedly show that, after a single interruption, it takes a significant amount of time to fully return to the original task. In work like development, where maintaining deep context is crucial, frequent notifications are not mere annoyance but a real loss of productivity.

How to Practice a Digital Detox

I came to feel that "setting boundaries" is more realistic than complete disconnection.

  • Turn off notifications by default. Keep on only what is truly necessary.
  • Keep the phone physically far away. Just leaving the phone in another room while you work has a big effect.
  • Move apps you open unconsciously off the home screen. Change the location your fingers remember.
  • Set aside "disconnected time" during the day. Even just for mealtimes and walks, go without the phone.
  • On the weekend, intentionally step away from screens for half a day or so.
Digital detox stages
Stage 1: Review all push notifications, turn off the unnecessary ones
Stage 2: Put the phone out of sight during work hours
Stage 3: Remove screens from daily moments like meals and walks
Stage 4: Create one half-day offline period per week

Interestingly, as my time away from screens increased, I started playing table tennis more often, and that itself became another form of recovery. Cutting back on screens was not the act of subtracting something; it was the act of bringing better things into the space that was freed up.


Exercise and Cognition: Move the Body and the Mind Clears

Exercise Is an Investment in the Brain

Everyone knows that exercise is good for the cardiovascular system and for strength. But it is less well known that exercise is also deeply involved in cognitive function and mood. Studies steadily report that regular aerobic exercise has a positive effect on the brain regions involved in memory and learning.

In my experience, a problem I was stuck on was often solved not in front of the desk but at the table tennis hall or on a walking path. When you move your body, color returns to your face, and the thoughts that had gone stiff loosen up along with it.

Movement Does Not Need to Be Grand

When you hear "exercise," it is easy to picture a gym membership and a punishing routine, but the start can be small.

  • Stand up and walk at least once an hour
  • A short walk after lunch
  • Two or three times a week, an exercise you love (for me, table tennis)
  • Take the stairs

Sustainability matters more than intensity. Rather than going hard once and resting for a week, doing it consistently, even lightly, makes the foundation solid.

Posture and Color as Signals

For someone who works seated for long stretches, posture is a bigger problem than you might think. A slumped posture makes breathing shallow, and shallow breathing in turn affects focus and condition. I felt that simply matching the monitor height to eye level and sitting deep in the chair changed my afternoon fatigue. The color in your face or your posture reflected in the mirror is a free dashboard showing the state of your body.


Stress and Recovery: Control Comes from Recovery

Chronic Stress Erodes the Foundation

Short-term tension actually heightens focus. The right amount of pressure just before a deadline gets the work done. The problem is when tension continues without recovery. A state of chronic stress is known to act negatively on sleep, immunity, and emotional regulation all at once.

Christina Maslach, an authority on burnout research, explains burnout not as simple fatigue but as the combination of emotional exhaustion, cynicism, and a reduced sense of efficacy. In other words, burnout does not come from a weak will; it is the structural result of accumulated depletion without recovery.

Putting Recovery into the Schedule

I went through a big change when I switched recovery from being "something you do with leftover time" to "something you put into the schedule in advance."

  • Intentionally place short breaks between tasks
  • Set aside time at the end of the day to wind down without a screen
  • Take one full day on the weekend completely away from work
  • Take short periods to breathe slowly
Example recovery routine (one day)
Morning: 90 minutes of focus, then 10 minutes of rest (stretch, drink water)
Lunch: a 10-minute walk after eating
Afternoon: 90 minutes of focus, then 10 minutes of rest (eyes closed, breathing)
Evening: stay away from screens, light wind-down
SignalWhen ignoredWhen recovery is added
Focus keeps breakingPush through with caffeineShort break or walk
Irritated by trivial thingsEmotions grow even sharperBreathe, create distance
Sleep is shallowMore tired the next dayReview the evening routine

Pitfalls and Balance: So That Health Does Not Become Another Obsession

The Paradox of Optimization Obsession

When you start taking care of your health, there is a pitfall that is easy to fall into. It is measuring everything in numbers and obsessing over a perfect sleep score and a perfect exercise record. As that happens, the behavior meant to care for your health instead becomes a new source of stress. The paradox of sleeping even worse because you are obsessed with your sleep score is not rare.

Health as a foundation comes not from obsession but from ease. The attitude that it is okay not to be perfect is what actually creates sustainability.

Watching for the Flood of Information and Medical Absolutism

Health information overflows, and a great deal of it is exaggerated or commercial. Particular foods or supplements are sometimes introduced as if they were cure-alls. I try not to believe any absolute claim at face value. The content written in this essay, too, is merely a matter of general lifestyle habits, not a diagnosis or a prescription.

  • If you have symptoms, go to a professional rather than searching the internet
  • Be skeptical of extreme and absolute claims for the time being
  • Slowly observe whether something suits you, and adjust accordingly

Balance as the Core

Health is a means for doing your work well, but it is also an end in itself. The thought of taking care of your health in order to work more can, in the end, lead to yet another form of depletion. Not forgetting that health itself is part of a good life is the starting point of balance.


Nutrition and Hydration: The Quality of the Fuel Sets the Output

What You Put In Decides How You Run

Just as code produces good output from good input, the body's output changes depending on what you put in. For a while I skipped meals or got by on sweet drinks and snacks, and every afternoon I went through sudden drowsiness and a drop in focus. It seems that whenever my blood sugar rose and fell sharply, my condition swayed along with it.

I did not need to follow a grand diet. But even just a few of the following changed my afternoon condition.

  • Do not skip breakfast, and include protein and complex carbohydrates instead of simple sugars
  • Eat at regular intervals rather than bingeing all at once
  • Keep water nearby instead of sweet drinks
  • Avoid overeating late at night

That said, nutrition varies greatly between individuals, and even more so if you have a particular condition. What is written here is merely general lifestyle habits, not a diet plan or a prescription. If you have an existing illness or are planning a major change, please be sure to consult a professional.

Hydration as a Trivial-Looking Variable

Surprisingly, even mild dehydration is known to lower focus and mood. I made a habit of always keeping a water bottle on my desk and taking a sip whenever I stood up. It looks trivial, but trivial foundations gather to make a great condition.

Daily fuel check
[ ] Did I avoid skipping breakfast
[ ] Did I drink water instead of sweet drinks
[ ] Did I eat at a steady pace without bingeing
[ ] Did I avoid overeating late at night

The Path Leading to Control of Body, Thought, and Speech

From Foundation to Control

I said earlier that health is the starting point of control. Now I want to unpack that connection a little more concretely. A day when I slept well and moved well, and a day when I did not, are completely different days for me.

On a day in good condition, my posture is upright, my hand movements are precise, and even when exercising, my body moves as I intend. This is control of the body. My thoughts are also clear, so I can calmly decompose a complex problem. This is control of thought. And above all, even faced with a colleague's edgy words, I have the room to pause a beat before responding. This is control of speech.

On the contrary, on a day when I am short on sleep and worn out, these three things collapse simultaneously. Posture slumps, thoughts cannot settle in one place, and speech grows rough. Control was a matter of condition before it was a matter of will.

The Habit of Reading Small Signals

When I begin the day, I briefly check my state. Did I sleep well last night, is my body heavy, is my mind elated or sunken. This short check sets my control strategy for the day.

Today's stateControl strategy
Slept well and feel lightFocus on hard work, deep work
Tired and irritablePush back important decisions and conversations, start with light tasks
Elated and distractedOrganize by externalizing, one thing at a time

Not pushing yourself to make important decisions or to have edgy conversations on a bad day. This alone greatly reduced the things I would later regret.


Sustainability: A Foundation Is Not Built in One Go

A Few Months of Habit Over a Few Days of Resolve

The most common mistake when trying to recover health is trying to change everything at once. You suddenly resolve to wake at dawn and exercise, completely overhaul your diet, and turn off every notification. Such resolutions often do not last more than a few days.

A foundation is not built in one go. Letting one small habit settle in and then adding the next ends up going further in the long run. I started from a single thing, "fixing my wake time," and only after that had settled did I add exercise.

Making It an Identity

James Clear, in 'Atomic Habits', says that habits last when they come not from results but from identity. When your self-definition shifts from "I should exercise" to "I am a person who takes care of my body," the behavior follows naturally.

I started defining myself as "a person who treasures sleep." Then staying up late looking at a screen gradually began to feel awkward. A small change in identity made countless decisions on my behalf.

Order of sustainable change
1. Pick only the single easiest habit
2. Do not add anything else until it settles in
3. Once it settles, add one small thing
4. Use consistency, not perfection, as the standard

Sunlight, Rhythm, and the Design of a Day

Light Is the Strongest Clock

Our body has a biological clock with a cycle of about 24 hours, the circadian rhythm. The strongest signal for setting this clock is light. When you receive bright sunlight in the morning, the body gets the signal that "it is now daytime," and the rhythms of arousal and sleep align accordingly.

During a period when I was working from home, there was a time when I stayed indoors all day and then found it hard to fall asleep at night. When I consciously started taking morning walks, the time I fell asleep naturally moved earlier within a few days. It was not a grand prescription; just going outside in the morning to receive light changed the foundation.

  • Get natural light as early as possible in the morning
  • Do not stay only in a too-dark interior during the day
  • In the evening, reduce bright light and screens to give the signal of "night"

Designing a Day as Rhythm

I try to make my day roll forward not on willpower but on rhythm. I wake at a similar time, work at a similar time, and wind down at a similar time. Once the rhythm is set, the need to spend willpower on "should I or should I not" every time decreases. A foundation is, in the end, built on a repeated rhythm.

Example daily rhythm
Morning: wake at a fixed time, sunlight, light movement
Daytime: stand and walk between focused work, drink water
Evening: reduce screens, lower the light
Night: go to bed at a fixed time, dark and cool

A Small Anecdote: A Month That Broke the Foundation and a Month That Rebuilt It

The Month It Broke

Let me return to that busy project period. During that one month, I averaged less than five hours of sleep, ate irregularly, and barely exercised at all. The result was exactly as I described earlier. My memory grew hazy, my emotions sharpened, and my code quality dropped. What hurt most were the edgy words I said to people close to me during that time. When my condition broke, control of speech was the first thing to fall.

The Month It Recovered

After the project ended, I intentionally spent a month rebuilding the foundation. There was nothing flashy about it. I fixed my wake time, took walks after lunch, stayed away from screens in the evening, and played table tennis on weekends. It was not a grand resolution but small repetition.

A month later, I was not the same person. I did the same amount of work with fewer mistakes, and I gained the room to pause a beat before reacting to a colleague's words. My ability did not suddenly increase. The foundation recovered, and the ability that had been there all along simply showed itself again.

This experience left me with a clear lesson. When you want to accomplish something, the first thing to fix is not your skill or your will, but your foundation.


Mental Health Is Also a Foundation

Body and Mind Are Not Separate

Until now I have mostly talked about the foundation of the body, but mental health is an equally important foundation. And the two are not separate. When sleep is lacking, the mind wavers; when the mind is heavy, sleep is disturbed. Body and mind are each other's foundation.

I remember that during the period when my condition broke, things I normally would have shrugged off felt unusually heavy. It was the same event, yet the weight of how I received it was different. This is not because the mind is weak, but because when the foundation shakes, the same stimulus arrives feeling larger.

Asking for Help Is Not Weakness

If your mind stays heavy for a long time, or daily life feels overwhelming, I urge you not to try to endure it alone on willpower. Just as you go to the hospital when your body is sick, receiving a professional's help when your mind is struggling is an utterly natural and wise thing. Asking for help is not weakness; it is a responsible choice to take care of yourself.

Let me stress again: this essay is not medical advice. If you have specific difficulties such as persistent depression, anxiety, or sleep problems, please be sure to consult a professional.

  • Do not ignore the signals of your mind
  • Try speaking honestly to someone close
  • Get a professional's help if needed
  • Acknowledge that recovery takes time
Mental foundation check
[ ] Am I noticing recent changes in my mood
[ ] Am I holding it all alone
[ ] Do I have a place to ask for help when needed
[ ] Am I giving recovery enough time

Frequently Asked Questions (FAQ)

Cannot I get more done by cutting sleep and working in that time

In the short term it may feel that way. But sleep deprivation lowers focus, memory, and judgment, so it makes the same work take longer and increases mistakes. In the end, when you look at the total, it is often a net loss.

Will I not fall behind on information if I do a digital detox

Truly important information reaches you in the end, even with notifications off. The problem is not information but the relentless stimulation. When you consume information with intention, you actually understand it more deeply.

I really do not have time to exercise

Start not with grand exercise but with the movement of daily life. Standing up once an hour, taking the stairs, a short walk after lunch — even these change the foundation.

I am trying to take care of my health but I am getting stressed instead

It may be a signal that perfectionism has crept in. Instead of scores and records, try switching to a looser standard such as whether you slept a little better today, or moved a little more.

I want to change all my habits at once, is that okay

In most cases I would not recommend it. A resolution to change everything at once rarely lasts more than a few days. Picking only the single easiest thing, letting it settle in, and then adding the next ends up going further.

Can I make up for lost sleep by sleeping in on the weekend

It can help recovery to some degree, but it is known to be hard to fully reverse the sleep you lacked all week with the weekend. Regular daily sleep is better for the foundation.


Closing: The Person Who Lays the Foundation First

Achievement looks dazzling, but beneath it there is always a quiet foundation. Sleeping well, moving well, reclaiming attention from distraction, and putting recovery into the schedule. These ordinary things are, in the end, what make control of body, thought, and speech possible.

I came to know this fact through my body only after losing my health once. Fortunately, the foundation could be rebuilt. It was not a grand resolution but the result of small choices piling up — going to bed a little earlier today, walking one more time after lunch.

Whatever it is you want to accomplish, I urge you to first examine the floor that all of it will stand on. Health is not the enemy of achievement; it is the most fundamental condition that makes achievement possible. Once more, please be sure to consult a professional about specific health problems.

Tonight, turning off the screen thirty minutes earlier than usual and going to bed. You can start from there. A foundation is made not from a grand resolution but from such small choices gathering together. And on top of that foundation, everything you want to accomplish can finally stand firm.


References