"The Pragmatic Programmer: from work to the experts" Book (3)

Chapter 3: Basic Tools

1. The power of plain text

Plain text with well-defined structure, knowledge stored in plain text, may be obtained from the description, it does not depend on the creation of a data stream applications.

Disadvantages: greater compared with the binary required storage space; high processing cost.

Advantages: keep it up; leverage; easier to test.

2.shell game

Familiar with the shell so that their productivity increased.

3. Powerful editing

Preferably mastering a configurable, extensible, programmable editor, and is used for all editing tasks, for additional appropriate editor.

4. Source Control

Be able to track every change you make in the source code and documentation, the better the system can track the compiler and OS version, with source control systems properly configured, you can always return to your previous software version, which greatly improved the efficiency of development.

Source build is repeatable, because you can always be rebuilt according to the content source of a given date.

5. Debugging

Debugging purposes is to solve the problem, we have to do is fix the problem, instead of issuing accusations.

It encountered surprisingly bug, corrected, why not find this bug before deciding, consider whether you want to improve unit tests or other tests to give them the ability to identify the fault. If the bug is some of the results, look at these data through those levels of bad data, whether it can be isolated as soon as possible.

Before you begin to view bug, first make sure that it is successfully compiled, the highest, accurate observation compiler warning level set to collect relevant data, and find a bug to talk to people more directly; to be a tough test boundary conditions, all-inclusive test, but also test the use of reality.

The data visualization, the debugger will usually focus on the current state, you sometimes need to observe the state of the program year-old over time.

Process eliminates bug in the dichotomy is more reliable.

Guess you like

Origin www.cnblogs.com/ywqtro/p/11762726.html