C ++ code design and reuse

Source: Internet
Author: User

Because I thinkCodeThe Design and reuse functions are powerful in Java and C #, saving you a lot of repetitive work in database operations and page writing, therefore, you can apply to csdn to read this book to learn how code reuse in C ++. I would like to thank you very much for receiving the book "C ++ code design and reuse" sent to me by csdn for free, and for the author's hard work and the translator's careful translation.

When I got my book in July, I opened the homepage and found that this book was just published in July. I was surprised that it was one of my hobbies to buy the latest book.

After reading it carefully, I feel that some of the areas I have not noticed before in C ++ programming and many of them are related to Java, C # The scope, skills, and improvements of code writing are as follows:

1. skills on how to achieve reuse of variables, constants, interfaces, constructors, and abstractions during class writing.

2. The methods of interfaces and base classes, and the methods of the base classes and interfaces inherited by actual operations must achieve the purpose of reuse ..

3,ProgramCompilation Time, instantiation time, code file distribution, runtime optimization, and other techniques to achieve reuse.

4. Tips for reusing error operations, such as error detection, handling errors, throwing exceptions, and code Operation Security.

5. Tips for reusing macros, global variables, namespaces, templates, resource files, and documents.

After reading this article, as a programmer who is not very familiar with C ++, it is still a bit difficult to understand, mainly reflected in the following aspects:

1. Because the book only has the coding style, it simply shows how to implement the key code. In fact, how to operate or write a program must have the basis of C ++ programming.

2. It seems that the book does not mention how to generate repeated software steps like codesmith to add, delete, and query the form interface files for database operations in batches.

3. The book has only 267 pages, and the content is relatively refined. For programmers who want to buy thick books, want to read instances, or buy books, they must have CDs, this book is not very relevant to the purchase habits.

After reading the above, I want to learn some regular and useful skills in C ++ Code compiling. Learn more and make more progress. If you find yourself having the habit of improving in a book, you can fix it to improve the actual programming level and coding habits.

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.