Document directory
- Understanding
- Decomposition
- Repeated
Yes, it turns capabilities into knowledge.
We are generally educated to turn knowledge into capabilities. However, the difference between excellence and excellence is not competence, but knowledge.
Example
On July 6, October 21, the EDG team held the CodeJam activity. After Junjun finished talking about the code to be reconstructed, it took about one hour. No one is confident that the Code will be reconstructed to a relatively satisfactory state within an hour. At this time, 8x is playing. He has the least understanding of the context of the Code, because others have been working on the code for at least a few months, and some have even been working for a year or two.
Finally, after over an hour of refactoring, the Code has achieved a relatively good structure. You will say that Xu Hao has strong abilities, but I will say that he is only knowledgeable. The refactoring he used is nothing more than the Inline Method, Move Method, Extract Method and other very common types. If we have enough time, many people in the team can achieve similar reconstruction results. But it is not "familiar" for others ".
During the reconstruction process, Xu Hao Ran tests much less frequently than I did. I had to run a test to minimize the number of parameters I added or subtracted. He does not need it, which saves a lot of time. This shows that his influence on such refactoring is fixed, and I am not sure, so I need an external feedback (TEST) to tell me.
Knowledge advantages
The advantage of knowledge and ability is that knowledge is a shortcut and fast. For example, for a right triangle, the two sides are 3 and 4 respectively. What is the length of the oblique side? People with the ability to do not have knowledge will calculate according to the stock theorem, and those with the knowledge will directly tell you that it is 5. Second, because knowledge takes less time on the brain, the brain can continue to think about more important things without context switching.
The theorem can also be said to be a kind of knowledge. The corresponding capability is the formula of the triangle's angle and edge relationship. It is only a special case under the right angle condition. It can be imagined that, when calculating the length of the Oblique Edge, we can only turn to the triangle angle and edge relationship formula. What is the condition of our speed and efficiency.
How can we transform capabilities into knowledge?
-- Deliberately practice.
Understanding
Most people, including most TWer, have a thorough understanding of refactoring and design patterns. In the work, I did not want to solve the problem. It seems like nothing. The general principle is that writing code is still terrible. 5 P (SRP/OCP/LSP/ISP/DIP) is dancing, and Smell is everywhere. Therefore, you must understand what you need to do before you practice.
Decomposition
Psychology research shows that the human brain's memory of mass knowledge is not as efficient as the memory of well-decomposed knowledge. Here (http://www.supermemo.com/articles/20rules.htm) there is an article about this.
Repeated
Repetition is the most undesirable thing for smart people. It is even more cruel to keep thinking in repetition.
Conclusion
He is the only expert.
Some people may see that these ideas come from the genius. I recommend everyone. At least all TWer should read this book. It takes about four to five hours, but it will give you a lot of thinking.