Some benefits of taking a short rest during programming

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.