Programming:principles and Practice Using C + +

Source: Internet
Author: User

The book has been read for several months and has been trying to write something, and I don't know where to start. Today, I saw some of Linus's criticisms of C + +, and this book combined to see a little meaning. (Linus's criticism of C + + is not an accidental whim, as it was said in 07, "C + + is a horrible language", this time saying "It's a really bad language, in my opinion." It tries to solve all the wrong problems, and does not tackle the right ones.

Learn and use C + + people have experience, C + + difficult to learn, difficult to master, the use of complex, there are many traps, a little attention may fall in. Liu Weipeng once interviewed Bjarne Stroustrupin early 08, specific content see the father of C + + New Year's Day interview (8+13 problem, about C + + learning & Use and future). When asked, "C + + learning is very difficult, generally read not less than 10 books to use well, I hope your new book can change this situation (note: This is the programming:principles and Practice using C + +)", Bjarne Stroustrup is confident that his new book will provide an answer to "what is the right way to learn C + +", and that 1, 2 carefully chosen books are enough to make a good C + + programmer .

To get this book, first surprised at its weight (well, more than 1200 pages, I bought a photocopy version, take in hand really tired people), read the time with relish, read and disappointed, meaning still not done. This book is not used to teach C + + programming, but rather a book that teaches you how to write programs, and C + + just happens to be chosen as a tool. There are many common principles, concepts, and techniques for programming, which may not be particularly understood by beginners, and may not be much new to veterans. Bjarne Stroustrup mentioned that the book's target audience is just learning to program the person, for veteran, also can learn a lot of things. But he previously mentioned the goal of " explaining what is the right way to learn C + + ..." 1, 2 books is enough ", should be not achieved.

Just reading this book, obviously not make you a good C + + developer, up to the level of eligibility , I think this is probably the book after the publication of the reason is not much. Simply getting started, this book should be enough, if you want to learn more C + +, I would recommend the following books: the C + + programming language:special Edition (3rd Edition) C + + in a Nutshell Accelerated C + +: Practical programming by Example C + + Primer (4th Edition) Essentia L C + + (C + + in-depth Series) ..... ..... .. ....... ....... ... Alas, it looks like a whole bunch of:(

Linus Recent comments here , the problem is that someone asked "Can you use C + + in Linux kernel?" (Feeling every 1 or 2 years will repeat this problem), casually extracts Linus a few words (Linus have strong opinion, mouth is very big, mouth without a lie. The best way to see the original text is:

"C is a very good language, it is complete, very useful, and very simple" "C make it as easy as you can, but no simpler" "" C + + one of the worst features is that there are too many context-dependent things, you check When you look at the code, it's hard to see what's going on in the current code fragment. When you see Sctp_connect (), you suddenly know the meaning of it, but if only to see Connect (), it is difficult to understand, grep-w my_connect all of a sudden "note: I also resent too many names of functions, there are some virtual functions such as ...

"C is largely context-free language, you see an expression, you know what it's doing." A function call does just one thing, don't bother to think about what version it's calling, what it's doing.

"Good design should revolve around how data flows, how it is organized, how to find it, and how to combine it with other data." But Oo language tends to be the most important object, and it's a nonsense to combine with object.

Bjarne Stroustrup 's criticism of Linus has been answered as follows

Linus Torvald is not C + + programmer , hasn ' t (to me knowledge) tried to use C + + for a decade, and the N He used a truly crappy C + + compiler (which is so bad I refused to use it for anything real).   more Imp ortantly highly specialized field : Few programmers do kernel Hacking–and does it in C + +. The
C isn ' t simple:please explain the rules for conversion from unsigned short to int. "Need for Just about any modern or large-program technique.
But Yes, it's a myth, and it damages individuals and organizations into it. "

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.