Originally, author Axel Rauschmayer is a freelance software engineer living in Munich, Germany. In this blog, he lists some of the benefits of taking a short rest during programming.
You will be more savvy than working harder. I once worked hard to implement a function. 12 hours a day, working for two weeks. I have made a lot of effort. After those two weeks, I took a rest and came up with the idea of reducing a lot of unnecessary work.
Your thinking will become clearer. Fatigue affects an individual almost as much as being drunk. When I get off work every day, I always lie to myself. I will finish it soon so that I can have a new start tomorrow. In fact, I usually need to clean up yesterday's mess the next day. If I find that I can take a break in programming, I only need a small amount of time to complete the same task, and the effect is better.
The code is clearer. If you want to Compile High-Quality code, code review (including reviewing extreme versions and Their Pair Programming) is invaluable. If I put the code on it for a few days after writing it, I will forget it and continue programming with new thinking. I am almost my own code reviewer, which greatly improves the readability of the Code.
It is helpful for us to take good care of our bodies. Don't forget that the latter is part of the former and must follow the natural law. Especially those who work on computers all day long tend to focus too much on their brains and ignore other parts of their bodies. The brain needs oxygen, rest, and nutrition to maintain the best state, so you need smooth breathing, healthy sleep, and a proper diet.
Communication is another way to learn how to solve problems. You can think of programming as a problem being solved. Use the best tools, technologies, and code libraries to compile your code. If you pause coding for a while, you may be able to solve the problem from a different angle-discuss the problem with others. It doesn't matter whether you use face-to-face conversations, social networking websites, emails, Twitter (Weibo), or other tools. Exchange of experience allows you to gain a new understanding of your code without coding yourself. To some extent, network search is a one-way means of communication, but they have become an important part of the programming convention that is considered to be an independent activity.
English address: Axel Rauschmayer
Address: Li shenghui, Bole online