"C Traps and Defects" study notes (1): Is this book worth reading?

The road is hindered and long, and the line is coming. Keep your head down and work hard, if you don't call it, it's a blockbuster! Come on, Sao Nian!

1. Reference materials

  • Summary of "C Traps and Defects";
  • Introduction to the author of "C Traps and Defects";
  • Preface to the Chinese edition of "C Trap and Defect"
  • The miracle of 18 prints of "C Trap and Defect";

2. Summary

1. The author's starting point for writing this book: not to criticize the C language, but to help C programmers avoid traps and obstacles in the programming process;

2. The book is divided into 8 chapters, which analyze the problems that may be encountered in C programming from the following aspects;

  • lexical analysis
  • Syntax and semantics
  • connection
  • Library Functions
  • Preprocessor
  • Portability defect

3. This book is suitable for readers:

  • Suitable for C programmers with certain experience to read and learn
  • C programming master (should also become a necessary desk book)

3. About the author

1. Author's name: Andrew Koenig;

2. Bell Labs;

3. "C Pitfalls and Defects", "C++ Meditations";

4. Many years of C++ development, research and teaching experience;

5. Personally participate in the evolution and transformation of C++, and have an important influence on the change and development of C++;

6, etc.;


4. Preface to the Chinese edition (October 2002)

1. This book is still being printed after 14 years!

2. The reason for the longevity may be that the book tells some important lessons in C language programming. And up to now, these lessons have not been widely known.

3. Some other authors might think so

  To become a good programmer, the most important thing is to learn the details of a specific programming language, function library or operating system, and the more the better. This concept is not unreasonable, but there are also biases.

  It is not difficult to master the details, a reference book with a rich and complete index is enough; at most, a colleague with a little experience may be needed from time to time to point out the direction.

  The difficult thing is how to "use the magic with one mind" for those things we already know.

4. Learning what should not be done is a way to understand how to use it.

5. To study the mistakes made by programmers in a language, not only can "travel before and learn from others", but also make us more familiar with the deep operating mechanism of this language.


5. The miracle of 18 prints

1. What kind of books should I read if I want to learn a programming language?

  Most occasions will recommend the latest published books on the market.

  Reason: With the current technological development speed in the computer field, we need to update our existing knowledge almost every once in a while. In this way, using a relatively new book, the content in it will be closer The development of current technology can make it easier for you to master what you want to learn.


2. This is a book about C language. Does it have the same value for C++ learners? In addition, the latest standard of the C language is now very new. As a C language book published before C89, is it still as effective as before?

  It must be valuable. The English version was printed 18 times in succession.

  In fact, C++ is not very different from C at that level, and mistakes often made in C programs are often reproduced in C++ programs.

In addition, although the latest standards have some changes compared to the previous ones, there are almost no differences in lower levels (such as lexical and grammar).


6. Summary

  1. Briefly understand the basic information, author's introduction, and content summary of the book;
  2. Briefly understand the main theme of the article, the author's intention, etc.;
  3. I have read the whole book once, and it feels like one sentence: "When taking notes, I feel that there is no nonsense in the book, all of which are useful!".

If the content of the article is wrong, please comment / private message a lot of advice! If you think the content of the article is not bad, remember to click the four links (like, bookmark, leave a message, follow), if you can click a follow, that is the greatest encouragement to me, and it will be the motivation for my creation, thank you !

Guess you like

Origin blog.csdn.net/fighting_boom/article/details/109140634