How can I write code every day?

Source: Internet
Author: User

Have you ever been disappointed that the project is not progressing? It is unrealistic to program for two days without any chance of relaxation. Another important question is the code you wrote last week. How much do you remember?

To this end, John resig, president of the Computer Science Institute and founder of jquery at Khan University, wrote an article to share his experiences and experiences. Now, let's see how he writes code every day. First, he sets several rules for himself:

1. Code must be written every day. You can write documents, blogs, or other articles, but you must add your own code.

2. The code must be useful. Do not format or refactor the code.

3. Write the code before midnight as much as possible (to avoid hasty code writing without staying up late ).

4. The code is open-source, and it is best to put it on GitHub (this forces you to write the code carefully, and will consider code reusability and how to create the module in the early stage of the project ).

Of course, these rules are flexible. John resig's strict rules aim to improve the development efficiency of his spare-time projects. He has been writing code every day for 20 consecutive weeks, which brings him good working habits.

In view of this, John resig shares with you the benefits of sticking to writing code every day:

It may be difficult for you to develop the habit of writing code, but before that, you should first correct your attitude and avoid too much anxiety and calmly write code, you will see unexpected results.

Every day, you are forced to write code for half an hour. It should not be more than one hour during the working day, but it will take more time to write code over the weekend, because taking advantage of the weekend time is the key.

There are many benefits to writing code every day. The most direct thing is that you will not forget it. As mentioned at the beginning of this article, if you do another project after two weeks, what do you remember?

However, writing code every day also has a side effect, that is, it will make your brain think from time to time, whether you are walking or engaged in other leisure activities. Of course, this will help you think of a good solution to the problem as soon as possible, and will replace your anxiety.

The most important thing is to learn how to balance work and life and when to do things. In your life, you may want to have fun with your friends, so you have to communicate well with your friends. Can you write the code and try again. If the time is not allowed, please finish today.

Finally, a brave person can make a miracle!

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.