In those years, the quality of csdn's blog was very bad and it left when I couldn't log on all day. Now I think more technical staff of csdn are planning to move it back. Let's try the popularity here and make a decision.
This article by love butterfly was originally published in http://lanphaday.bokee.com, and retain all relevant rights, welcome to reprint (any form do not delete change), But please save this statement, thank you.
Self-cultivation
My thoughts on "Warring States policy" and "excellent programming path"
I bought several books a few days ago, including "Warring States policy" and "programming excellence first-volume deep understanding of computer". Today I will talk about some of my thoughts after reading them.
The old feudal dynasty left us with the goal of learning and being superior to others. Our lifelong dream is to govern the country on a daily basis. This idea of staying at home farming is still an infinite power. The final reason is that the agricultural industry and commerce status is too low. Of course, this article Article It's not about politics, so it's just a matter of time. Going Global to the modern era has given a new meaning, that is, to become a top character in a certain field, such as winning a Nobel Prize in Chemistry and a Turing prize in computer science. However, such a character will naturally encounter a hundred-year-old encounter like an old martial arts legend, which is too far away from us, but still remembers that it hinders our pursuit of death, this is one of the benefits of feudal culture in three thousand. Another benefit of the feudal culture is the imperial examination, which is conducive to the selection of Human Resources (not intended to discuss its fairness and adaptability ). The greatest benefit of the imperial examination is to let the masses realize that as long as they "cultivate themselves", they will have the opportunity to "govern the country in a peaceful way.
"Warring States policy" is a historical book. I don't have much to say about the advantages of reading history. For war, I prefer to regard it as a tutorial on governing the country, for example, learning kingcraft by example. I believe it can be sold well in foreign countries. The book "war" has not been fully read yet, but it has already begun to look at the door. As in the preface, he mainly talks about the technology of governing the country in the ordinary world, but he has little to say about the basic technique of building a true family to govern the country in the ordinary world. In fact, self-cultivation has always been the most basic, but has never been taken seriously. However, in the Ming and Qing Dynasties, the Yuan Dynasty gradually paid more attention to the appearance of books such as Yan's family training and Zhu Zi family training. However, till now, it is still difficult to take a place in a person's life plan or even career plan. In the pursuit and planning of a person's career plan, the family members have no requirements for competence in higher positions, I thought that after ten years and eight years, the ugly daughter-in-law will eventually survive. It is said on the Internet Program No one talks about how programmers should do what they do when they are thirty or thirty-five years old. This is the lack of emphasis on self-cultivation.
In this regard, many foreign counterparts have done better, but it does not mean that there are no such people in China. Four volumes of "the path to excellence in programming" (English name: write great Code) are good books about self-cultivation. I have the first volume, and the Chinese version has only the first one. Not to mention the contents of this book, we can see the impetuousness and great success of Chinese people from the English name and Chinese name. When translating English names into Chinese, it is not difficult to draw on the profound and difficult concept of "Tao ". Code Or is it impossible to make code from ordinary to excellent? Another name called "programmer's way of practice" is more disgusting than this one, and the translation of a question is preferred. After talking about the subject, let's talk about this book. This book is a good book, and the quality of translation is acceptable (it is possible that many Chinese translations have been read, and the ability to accept various words has been enhanced ), however, the layout and other details are still insufficient. For example, 2 ^ N is printed as 2n in multiple places, but the author Randall Hyde (author of The Art of assembly language) an in-depth understanding of the computer system is still on the paper, from numerical expression in the computer to binary arithmetic and bitwise operation, from floating point representation to character representation and string organization, from the Memory organization and access to the CPU architecture, from the instruction set to the input and output, we will explain the advantages and disadvantages and bottlenecks. I didn't teach you how to optimize it, But I just told you where it would be a trap. I remember that there is an entry in C ++ programming specification to avoid code deterioration. I feel that this book is all about validating this statement-if you are not capable of optimization, at least keep it intact. I have participated in some code review. Sometimes I can see that one or two codes consume CPU and memory resources, for example, when the situation is reset, all new objects are generated, or when conditions are judged, the unlikely situations are put in front. When some colleagues point out, they often hear the following: "Well, there is a problem here, because the code was not mature at the beginning, so no optimization was made. We plan to optimize it in the official version (next version." At this time, I would like to say: "You are not doing optimization, just correcting the deteriorated code ." Also from "C ++ programming specifications", there is a good saying: optimization should be done after the code is stable and mature, to prevent degradation but should be performed at all times (not completely remembered ). Here, I do not mean that the code I write has not deteriorated. On the contrary, I feel that the code I write is missing due to the lack of the concept of "Design Pattern" and lack of project experience, I personally think this is a more serious deterioration because the deterioration consumes no more CPU and memory, it is the energy and life of myself and my colleagues. I have been working for almost a year. I am more and more aware of this. I remember that I really wanted to be assigned to a project team during my pre-job training years ago, but now I hope I don't have to do anything for another half a year, let me read the book well and lay a good foundation for my mind. As a programmer who aims to write excellent code, the meaning of reading four volumes of "excellent programming" is never as simple as reinforcing the foundation. Personally, my biggest feeling is that it makes me realize the importance of basic, that is, the importance of self-cultivation. I have never attended any major school since I was a child or a university. It was this proud little cleverness that made me not pay attention to the basics and thought that I could not escape my smart head from my life and work like an exam. Even if you have suffered from a lack of solid foundation in the chess game, you are still obsessed with Shaowu (deliberately failing to write less ,:-)). Later, I graduated and joined Netease. The experts around me were like the cloud. I wanted to catch up, but I was not sure that I had a hard Foundation. The bigger obstacle is that you are afraid to leave the language and platform you are familiar with. You cannot make full use of your own cleverness. People can see that you are a "Tiger ". After working for a long time, I had the guts to unload the burden and slowly develop my own self-cultivation path. The path to excellence in programming is a good book for "repairing" the technology and "body". I plan to read all four volumes.
The ideal of the Chinese people is to govern the country in the ordinary world. Foreigners also say that they do not want to be generals as good soldiers. I am not a sage-level soldier, and it is difficult to make achievements in the fields they are familiar. I have read the two books "Warring States policy" and "The path of excellence in programming". My thoughts are: there must be strategies for doing big things, but the things of the world must be detailed (Hou Jieyu) [I am really a word in Lao Tzu's book of ethics. I would like to thank enthusiastic netizens for correcting myself.], Without solid basic knowledge, you cannot control major events. The ancients concluded: How can they scan the world without scanning a house? Therefore, I need to give up my mind step by step.