Автор: J. Davidson, Kate Gregory
Издательство: Addison-Wesley Professional
Год: 2022
Формат: epub
Страниц: 352
Размер: 11.4 Mb
Язык: English
Discover the Beauty of Modern C++
Expert C++ programmers Guy Davidson and Kate Gregory identify 30 Core Guidelines you'll find especially valuable and offer detailed practical knowledge for improving your C++ style. For easy reference, this book is structured to align closely with the official C++ Core Guidelines website.
Throughout, Davidson and Gregory offer useful conceptual insights and expert sample code, illuminate proven ways to use both new and longstanding language features more successfully, and show how to write programs that are more robust and performant by default.
Avoid "bikeshedding": stop wasting valuable time on trivia
Don't hurt yourself by writing code that will cause problems later
Know which legacy features to avoid and the modern features to use instead
Use newer features properly, to get their benefits without creating new problems
Default to higher-quality code that's statically type-safe, leak resistant, and easier to evolve
Use the Core Guidelines with any modern C++ version: C++20, C++17, C++14, or C++11
There's something here to improve virtually every program you write, design, or maintain.