Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Refactoring with C++
Refactoring with C++

Refactoring with C++: Explore modern ways of developing maintainable and efficient applications

eBook
₹799.99 ₹2382.99
Paperback
₹2978.99
Subscription
Free Trial
Renews at ₹800p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Refactoring with C++

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Enrich your coding skills using features from the modern C++ standard and industry approved libraries
  • Implement refactoring techniques and SOLID principles in C++
  • Apply automated tools to improve your code quality
  • Purchase of the print or Kindle book includes a free PDF eBook

Description

Despite the prevalence of higher-level languages, C++ is still running the world, from bare-metal embedded systems to distributed cloud-native systems. C++ is on the frontline whenever there is a need for a performance-sensitive tool supporting complex data structures. The language has been actively evolving for the last two decades. This book is a comprehensive guide that shows you how to implement SOLID principles and refactor legacy code using the modern features and approaches of C++, the standard library, Boost library collection, and Guidelines Support Library by Microsoft. The book begins by describing the essential elements of writing clean code and discussing object-oriented programming in C++. You’ll explore the design principles of software testing with examples of using popular unit testing frameworks such as Google Test. The book also guides you through applying automated tools for static and dynamic code analysis using Clang Tools. By the end of this book, you’ll be proficient in applying industry-approved coding practices to design clean, sustainable, and readable real-world C++ code.

Who is this book for?

This book will benefit experienced C++ programmers the most, but is also suitable for technical leaders, software architects, and senior software engineers who want to save on costs and improve software development process efficiency by using modern C++ features and automated tools.

What you will learn

  • Leverage the rich type system of C++ to write safe and elegant code
  • Create advanced object-oriented designs using the unique features of C++
  • Minimize code duplication by using metaprogramming
  • Refactor code safely with the help of unit tests
  • Ensure code conventions and format with clang-format
  • Facilitate the usage of modern features automatically with clang-tidy
  • Catch complex bugs such as memory leakage and data races with Clang AddressSanitizer and ThreadSanitizer

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Jul 19, 2024
Length: 368 pages
Edition : 1st
Language : English
ISBN-13 : 9781837639410
Category :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Jul 19, 2024
Length: 368 pages
Edition : 1st
Language : English
ISBN-13 : 9781837639410
Category :

Packt Subscriptions

See our plans and pricing
Modal Close icon
₹800 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
₹4500 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just ₹400 each
Feature tick icon Exclusive print discounts
₹5000 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just ₹400 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 10,054.97
Data Structures and Algorithms with the C++ STL
₹3351.99
Modern CMake for C++
₹3723.99
Refactoring with C++
₹2978.99
Total 10,054.97 Stars icon

Table of Contents

17 Chapters
Chapter 1: Coding Standards in C++ Chevron down icon Chevron up icon
Chapter 2: Main Software Development Principles Chevron down icon Chevron up icon
Chapter 3: Causes of Bad Code Chevron down icon Chevron up icon
Chapter 4: Identifying Ideal Candidates for Rewriting – Patterns and Anti-Patterns Chevron down icon Chevron up icon
Chapter 5: The Significance of Naming Chevron down icon Chevron up icon
Chapter 6: Utilizing a Rich Static Type System in C++ Chevron down icon Chevron up icon
Chapter 7: Classes, Objects, and OOP in C++ Chevron down icon Chevron up icon
Chapter 8: Designing and Developing APIs in C++ Chevron down icon Chevron up icon
Chapter 9: Code Formatting and Naming Conventions Chevron down icon Chevron up icon
Chapter 10: Introduction to Static Analysis in C++ Chevron down icon Chevron up icon
Chapter 11: Dynamic Analysis Chevron down icon Chevron up icon
Chapter 12: Testing Chevron down icon Chevron up icon
Chapter 13: Modern Approach to Managing Third Parties Chevron down icon Chevron up icon
Chapter 14: Version Control Chevron down icon Chevron up icon
Chapter 15: Code Review Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Full star icon Full star icon 5
(2 Ratings)
5 star 100%
4 star 0%
3 star 0%
2 star 0%
1 star 0%
Nathaniel Ryan Doromal Sep 19, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Here's my review of "Refactoring with C++" by Dmitry Danilov. This book is a unique and excellent resource for C++ improvers, filling a crucial gap in the C++ literature with its focus on refactoring specifically for C++.Martin Fowler's work on refactoring was an important contribution to the software engineering literature and a definite must-read. However, it focuses on Java and heavily object-oriented patterns. I hadn't seen a detailed topic of refactoring in the C++ domain until I came across Danilov's book.C++ refactoring looks and feels quite different from Java refactoring. There are more considerations and possible ways to proceed. The patterns presented in this book are good to consider as the best patterns for refactoring in C++.If I were to offer some minor criticisms of the book, it would be that it's not entirely tailored for beginners. The difficulty of the content doesn't always increase gradually, and there are intermittent advanced topics (such as concurrency) that appear unexpectedly. However, the descriptions of best software engineering practices are well-summarized and presented in a way that even beginners can benefit from.For those learning C++, I recommend studying the examples very carefully to understand the patterns presented.
Amazon Verified review Amazon
N/A Jan 24, 2025
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Essential book if you need to improve legacy code
Feefo Verified review Feefo
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.