The Pragmatic Programmer: from work to read expert notes 02

   In this book also introduces some basic tools, plain text, shelll games, powerful editor, source code control.

   What is plain text, plain text structure xml, html, sgml are well-defined, plain text can keep it up, and it is easy to test, can be checked by the script, and can be understood directly, but he occupied space great. In the shell, you can enable a variety of applications, you can search for files, query system status, filtered output, programmable via the shell, you can build complex macro commands, you often used to complete the activities carried out. Proficient in one of the editors, and complete their editing tasks on it. When debugging, to fix the problem rather than blame, adjust their mentality.

    We can not write perfect software, designed by the contract. Before you begin accepting of things to be strict, but promised to return to something as little as possible, to achieve DBC: contract can specify your rights and obligations, but also provides other's rights and responsibilities, if any party fails to fulfill the terms of the contract, some compensatory measures will enable - throws an exception or terminate the program.

   When we find a program that something has happened can not happen, we have to terminate the program as soon as possible, its small harm than the harm of bad programs and more. One of the problems with regard to the exception is knowing when to use them. Abnormal rarely used as part of the normal flow of the program, an exception should be reserved for unexpected events. We want to issue an exception for handling exceptions.

   We should learn a text manipulation language, in future work, we may need to complete a variety of documents, if a text manipulation language learning, we might work better, and be able to save a lot of time. We are programming, the code should be tested, ensuring the integrity of the case, and then to its users, does not allow the user to find a bug for us.

   Knowledge assets are all the facts about computer technology and applications they work as well as the programmer knows all their experience, we should learn to run their own assets, knowledge assets on a regular basis for our investment, diversify, you know the more things you more valuable, risk management, buy low and sell high.

   For knowledge assets, if we want to have more, we must continue to learn. Let learning become a habit, and only continue to learn, we can progress so that they may be raised. Whether in the present study or work in the future, we must continue to learn, fast development of the times, if we stand still, it is likely to be eliminated, we should always maintain a sense of crisis.

Guess you like

Origin www.cnblogs.com/zhang12345/p/11031718.html