Many times you write code, you can't calm down, I always think about doing something else. The reason may not be interested in the code to write, maybe the current algorithm is too complicated, maybe I don't know how to get started at all. Special In the morning, I can't really know that I have to complete the small part of the task today, I will transfer attention, do something that is not related to writing code. I am deeply annoyed, but I can't control myself very well. After studying some time management methods, I tried some of my own programs, I feel very effective, summarized as follows. First: I will set tomorrow's work according to hours when I get off work, so that the future work is embodied. It can be written directly to the code (in fact, it is approximately a small algorithm), which is not very clear about the next morning to transfer the content. Second: think about learning those things or have to complete recently Other things that are not directly related to the current work, after each hour of doing the planned tasks, the rest is used to do these things. Because these things have great attractions to themselves, they will force us to complete the plan as soon as possible. And it is first completed the plan, the faster, and we can have more time to do our own business. After constantly strengthening this psychological implies, it will form habits. Third: When you encounter a complicated When the algorithm produces an escape psychology, this algorithm should be divided into multiple steps, once (the time for an hour), only one step, and then integrate. Fourth: When starting a large task At the beginning, it may be written for a period of time, think of for a period of design, then you can refer to the design side, so as not to design time to run God.
It is best to put the plan to a place where you can view it, so you can always know what you want to do, and then do it.