Hands-On Design Patterns with C++ : Solve common C++ problems with modern design patterns and build robust applications, 2/e (Paperback)

Pikus, Fedor G.

  • 出版商: Packt Publishing
  • 出版日期: 2023-07-21
  • 售價: $1,800
  • 貴賓價: 9.5$1,710
  • 語言: 英文
  • 頁數: 626
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1804611557
  • ISBN-13: 9781804611555
  • 相關分類: C++ 程式語言Design Pattern
  • 立即出貨 (庫存=1)

買這商品的人也買了...

商品描述

A comprehensive guide with extensive coverage of concepts such as OOP, functional programming, generic programming, concurrency, and STL along with the latest features of C++

Key Features

  • Delve into the core patterns and components of C++ to master application design
  • Learn tricks, techniques, and best practices to solve common design and architectural challenges
  • Understand the limitation imposed by C++ and how to solve them using design patterns

Book Description

C++ is a general-purpose programming language designed for efficiency, performance, and flexibility. Design patterns are commonly accepted solutions to well-recognized design problems. In essence, they are a library of reusable components, only for software architecture, and not for a concrete implementation.

This book helps you focus on the design patterns that naturally adapt to your needs, and on the patterns that uniquely benefit from the features of C++. Armed with the knowledge of these patterns, you'll spend less time searching for solutions to common problems and tackle challenges with the solutions developed from experience. You'll also explore that design patterns are a concise and efficient way to communicate, as patterns are a familiar and recognizable solution to a specific problem and can convey a considerable amount of information with a single line of code.

By the end of this book, you'll have a deep understanding of how to use design patterns to write maintainable, robust, and reusable software.

What you will learn

  • Recognize the most common design patterns used in C++
  • Understand how to use C++ generic programming to solve common design problems
  • Explore the most powerful C++ idioms, their strengths, and their drawbacks
  • Rediscover how to use popular C++ idioms with generic programming
  • Discover new patterns and idioms made possible by language features of C++17 and C++20
  • Understand the impact of design patterns on the program's performance

Who this book is for

This book is for experienced C++ developers and programmers who wish to learn about software design patterns and principles and apply them to create robust, reusable, and easily maintainable programs and software systems.

商品描述(中文翻譯)

C++是一種通用的程式語言,旨在提高效率、性能和靈活性。設計模式是對廣泛認可的設計問題提出的常見解決方案。本質上,它們是一個可重複使用的組件庫,僅用於軟體架構,而不是具體的實現。本書幫助您專注於自然適應您需求的設計模式,以及那些能夠從C++的特性中獲益的模式。憑藉這些模式的知識,您將花費更少的時間尋找常見問題的解決方案,並通過從經驗中開發的解決方案來應對挑戰。您還將探索到設計模式是一種簡潔高效的溝通方式,因為模式是對特定問題的熟悉且可識別的解決方案,可以通過一行代碼傳達大量信息。通過閱讀本書,您將深入了解如何使用設計模式來撰寫可維護、強大且可重複使用的軟體。

目錄大綱

  1. An Introduction to Inheritance and Polymorphism
  2. Class and Function Templates
  3. Memory and Ownership
  4. Swap – From Simple to Subtle
  5. A Comprehensive Look at RAII
  6. Understanding Type Erasure
  7. SFINAE, Concepts, and Overload Resolution Management
  8. The Curiously Recurring Template Pattern
  9. Named Arguments, Method Chaining, and Builder Pattern
  10. Local Buffer Optimization
  11. ScopeGuard
  12. Friend Factory
  13. Virtual Constructors and Factories
  14. Template pattern and NonVirtual idiom
  15. Singleton - A Classic OOP Pattern
  16. Policy-Based Design
  17. The Visitor Pattern and Multiple Dispatch
  18. Adapters and Decorators