今日推荐英文原文：《6 Tips to Stay Healthy as a Software Developer》
推荐理由：输入 npm run dev，然后去打杯水上个厕所什么的，再回到桌前的时候开发服务器估计就启动好了——仔细一想的话这个是不是有点慢？这个项目则改变了这一点，热更新什么的依然能用，但是开发环境里减少了不必要的打包过程来降低了开发环境的启动时间。
今日推荐英文原文：《6 Tips to Stay Healthy as a Software Developer》作者：Erik van Baaren
6 Tips to Stay Healthy as a Software Developer
Your health should come before your workExtended periods of sitting increases your risk of chronic health problems, such as heart disease, diabetes, and some cancers. It can also be bad for your mental health.
It’s essential to develop healthy habits as early as you can to counter these risks. I’ll share six crucial tips that helped me improve my health as a software developer.
1. Get Enough SleepSleep is underrated. It’s the foundation of your health. So why do we need it so badly? There are various reasons — these are a few found by scientists:
- All kinds of tasks appear to be more challenging when you’re deprived of sleep
- The ability to recall and use newly learned information relies on sleep, studies have found
- Scientists also discovered that sleep helps your immune system function best. While sleeping, immune cells, known as T cells, spend that time racing around our bodies.
- Sleep loss triggers the same brain mechanisms that make us sensitive to anxiety. In one study where the participants were sleep-deprived for just one night, their anxiety levels increased by 30% the next day.
2. Eat and Drink HealthyThe average American eats roughly 17 tablespoons of added sugar every day, with almost half coming from soda. Soda is easy to take in, and it doesn’t make you feel satiated that much, while it still contains lots of calories. Stop drinking soda!
Another one:Switch your snacks to fruit. I’ll admit that often I’m just too lazy to prepare the fruit, even though I love eating it. It’s simply too hard to resist other easy-to-grab alternatives.
I solved my lack of fruit eating by making it part of my daily routine. When I leave for work, I take two pieces of fruit with me. Because fruit has become an easy option — I put it right in front of me on my desk — I eat fruit instead of getting an unhealthy snack.
3. Watch Your Posture
Photo by Samuel Sun on Unsplash
Here are some basics regarding a proper workplace:
- Use a decent desk — it should be height-adjustable
- Use a good chair that’s highly adjustable
- Position your monitor, mouse, and keyboard correctly
4. Don’t Get Cold
Photo by Spencer Backman on Unsplash
Even when it’s hot outside, we often feel cold. There are two major reasons for this:
- You’re sitting inside an air-conditioned office most of the time
- You’re not moving
Always bring a vest, jacket, sweater, or whatever works for you to keep yourself warm and comfortable behind that desk.
Photo by Guilherme Stecanella on Unsplash
Move that body — it’s super important. Sitting still all day has some serious downsides:
- It increases your risk of chronic health problems, such as heart disease, diabetes, and some cancers
- It can lead to problems with your hip joints
- It can cause problems with your back, especially if you consistently sit with poor posture
- It can also be bad for your mental health — the risk of both anxiety and depression is higher in people that sit more
- It causes stiffness in your neck and shoulders
- Walk or cycle to work
- Take a walk during lunchtime
- Use software like Stretchly or Workrave to remind yourself to take regular breaks
It doesn’t matter too much what you do: walking, running, cycling, going to the gym, or doing a workout at home using an app. Find out what works for you, and don’t give up on it.
6. MeditateDon’t forget your mind. Mindfulness meditation is a simple way to start taking care of it.
Anybody can meditate. There’s no magic to it, and it’s not difficult. But it does require practice. You can’t become mindful by just reading about it for the same reasons you can’t become a guitar virtuoso by just reading about it.
Photo by Sage Friedman on Unsplash
This is how it works. While trying to be present and focusing on one thing, usually your breathing, your brain will wander off:
- Thoughts will pop into your head
- Sounds may distract you
- You will feel an itch somewhere in your body — or maybe some pain or discomfort
Thoughts and feelings you’d previously have ignored, not noticed at all, or, perhaps, freaked out about, will now be met with a gentle, nonjudgemental, observing, and curious mind. You learn to create space between a thought or feeling and your response to it. You’ll choose your response wisely, instead of instinctively.
I try to meditate daily, just for ten minutes. Meditation is easy; making it a routine is hard. But once it’s a routine, you’ll reap the benefits.
If you don’t want to spend money on a mindfulness course, just start with one of the excellent apps out there — Headspace and Calm are two I often hear about. They do a great job of easing you into mindfulness and meditation.
The Bottom LineThe most sustainable way to get healthy and stay healthy is to adjust your daily routines and habits. Making changes that have a positive effect each and every day outweighs all the other options in the long run.