Is the method that the lazy man makes.
At the same time, the same face is a mountain, different people, think of different methods. Although in the face of the mountain, but also have a clear plan, arrangements, but because of their "hard-working", and did not want to fast and simple to achieve the purpose of the mountain, but the simple "knock on the Stone, Ji Hod in the tail of the Bohai Sea." And the same period of Li Bing, but because "lazy" thought of a quick and simple method, from the little lady cooking dishes, found the base stove Goose soft stone was burned to burst, especially water, so there was later Li Bing method, "pay to burn."
It can be obvious that their methods are different, the final effect is different, the method of folly is slightly foolish, but Li Bing is much smarter. The second chapter of the topic is "lazy people to create the method", on my understanding, lazy people is not to say is the real sense of laziness, but the simple fast and efficient method of the pursuit of the foolish public industrious, but never thought of other ways to move mountains, and finally only "descendants, infinite chamber also." Li Bing can be inspired by the little things in life, and put ideas into practical practice, and finally solve problems efficiently. Li Bing did not choose the method of the foolish, but because the so-called "lazy" found a simpler way.
In the face of the process is the same, how to design the program, so that the code is simple and effective, it is in every time we do engineering needs to think of the problem. If you are hard-working, and take pains to knock the code, of course, can also solve the problem, but this is our ultimate goal of learning programming. Programming as life, will encounter a variety of problems, the face of problems, not just rely on hard-working hands to solve problems, but also to move the brain, "lazy" point, find the most simple and effective way to solve. The code is simple and effective, it can solve the problem quickly, but also makes it easy to query or change the code after the error.
1 million lines of code can be written in a folder
In the early days, the technology is not so developed, many programmers can only write the program in a folder, but because of the gradual development of technology, the code is not necessary to write to a folder, if it is a large project, the code is written together, it will appear particularly chaotic and miscellaneous, if there is an error, it will be very difficult to find, will appear before, if you are enough "industrious", you can also complete such a task. For our current programming tasks, what we need to do is to first set up the entire task of the large framework, categorized by the solution into different files, so that the code is clear, but also easy to find errors and changes later.
Like the book of the bookshelf, put your code clean and clear. This will divide the big problem into small problems, but also easy to solve.
Be a wise man, not a man who knows nothing but "diligence."
Read the second chapter of "Boulevard to Jane"