C++ Brain Teasers: Exercise Your Mind 1st Edition 291305

Код товару: 291305Паперова книга
C++ is famous for getting all the default behaviors wrong and for sometimes making demons fly out of your nose. Through 25 puzzles, from the useful to the outright weird, we explore some of C++'s most interesting quirks. How does initialization actually work? Do temporaries even exist? Why is `+!!"" ` a valid expression in C++? As you work through each puzzle, you will peel off some of the layers of complexity of C++, getting a fundamental understanding of how the language works. This will help you write better code and recognize issues more easily while debugging.

Each puzzle in the book is a complete, seemingly simple C++ program, but can you figure out the output for each, or will the answers stump you? Most of the programs compile and have deterministic, though sometimes surprising, output. Some might, however, have undefined behavior, where anything can happen, including making demons fly out of your nose! Yet others might have unspecified behavior with output that is not completely deterministic; we just know nothing as bad as nasal demons will happen.

All puzzles are accompanied by detailed discussions, taking a look under the hood at what exactly is going on to help you understand more about C++'s unexpected behaviors, as well as fundamental concepts like initialization, overload resolution, and implicit conversions. For the non-deterministic cases, we'll explore some typical behaviors one can expect to see in practice, what causes them, and why they shouldn't be relied on.

After working through the book, you'll have tools and techniques to help you write better and safer code, and a better understanding of the fundamentals of the language, the background for some of C++'s apparent weirdness, and a better feel for identifying bugs and unsafe code in your own programs.

What You Need:
The book assumes basic knowledge of C++. If you want to run the programs yourself, you can use either a local C++ compiler or the online compilers at https://godbolt.org.

About the Author
Anders Schau Knatten has been a professional programmer since 2001, using a variety of languages. He is the author of the online C++ Quiz and C++ on a Friday and has spoken about C++ at conferences like CppCon, Meeting C++, NDC TechTown, and others. Anders is on Twitter as @knatten and @CppQuiz, as well as on Mastodon as @knatten.
1'400 ₴
Купити
Monobank
до 10 платежей
от 157 ₴ / міс.
  • Нова Пошта
    Безкоштовно від 3'000,00 ₴
  • Укрпошта
    Безкоштовно від 1'000,00 ₴
  • Meest Пошта
    Безкоштовно від 3'000,00 ₴
C++ Brain Teasers: Exercise Your Mind 1st Edition - фото 1
Інші книги Pragmatic Bookshelf
Become an Effective Software Engineering Manager: How to Be the Leader Your Development Team Needs 1st Edition
252823
Dr. James Stanier
1'500 ₴
Agile Web Development with Rails 7
197723
Sam RubyDave Thomas
880 ₴1'000 ₴
Agile Retrospectives: Making Good Teams Great
39579
Esther Derby, Diana Larsen, Ken Schwaber
650 ₴
tmux 3: Productive Mouse-Free Development 3rd Edition
305257
Brian P. Hogan
1'900 ₴
Programming Phoenix LiveView: Interactive Elixir Web Programming Without Writing Any JavaScript 1st Edition
197737
Bruce TateSophie DeBenedetto
1'700 ₴
Exploring Graphs with Elixir. Connect Data with Native Graph Libraries and Graph Databases
197739
Tony Hammond
1'900 ₴
Build a Binary Clock with Elixir and Nerves: Use Layering to Produce Better Embedded Systems 1st Edition
197745
Frank HunlethBruce Tate
1'200 ₴
Effective Haskell: Solving Real-World Problems with Strongly Typed Functional Programming 1st Edition
256217
Rebecca Skinner
1'700 ₴

Характеристики

  • Бренд
  • Автор
  • Категорія
    Програмування
  • Номер видання
    1-е вид.
  • Рік
    2024
  • Сторінок
    140
  • Формат
    190х235 мм
  • Обкладинка
    М'яка
  • Тип паперу
    Офсетний
  • Мова
    Англійська
  • Ілюстрації
    Чорно-білі

Від видавця

C++ is famous for getting all the default behaviors wrong and for sometimes making demons fly out of your nose. Through 25 puzzles, from the useful to the outright weird, we explore some of C++'s most interesting quirks. How does initialization actually work? Do temporaries even exist? Why is `+!!"" ` a valid expression in C++? As you work through each puzzle, you will peel off some of the layers of complexity of C++, getting a fundamental understanding of how the language works. This will help you write better code and recognize issues more easily while debugging.

Each puzzle in the book is a complete, seemingly simple C++ program, but can you figure out the output for each, or will the answers stump you? Most of the programs compile and have deterministic, though sometimes surprising, output. Some might, however, have undefined behavior, where anything can happen, including making demons fly out of your nose! Yet others might have unspecified behavior with output that is not completely deterministic; we just know nothing as bad as nasal demons will happen.

All puzzles are accompanied by detailed discussions, taking a look under the hood at what exactly is going on to help you understand more about C++'s unexpected behaviors, as well as fundamental concepts like initialization, overload resolution, and implicit conversions. For the non-deterministic cases, we'll explore some typical behaviors one can expect to see in practice, what causes them, and why they shouldn't be relied on.

After working through the book, you'll have tools and techniques to help you write better and safer code, and a better understanding of the fundamentals of the language, the background for some of C++'s apparent weirdness, and a better feel for identifying bugs and unsafe code in your own programs.

What You Need:
The book assumes basic knowledge of C++. If you want to run the programs yourself, you can use either a local C++ compiler or the online compilers at https://godbolt.org.

About the Author
Anders Schau Knatten has been a professional programmer since 2001, using a variety of languages. He is the author of the online C++ Quiz and C++ on a Friday and has spoken about C++ at conferences like CppCon, Meeting C++, NDC TechTown, and others. Anders is on Twitter as @knatten and @CppQuiz, as well as on Mastodon as @knatten.

Відгуки про C++ Brain Teasers: Exercise Your Mind 1st Edition

C++ Brain Teasers: Exercise Your Mind 1st Edition
C++ Brain Teasers: Exercise Your Mind 1st Edition
1'400 ₴
Купити
Персонально для вас
Effective C++: 55 Specific Ways to Improve Your Programs and Designs (3rd Edition) 3rd Edition
111863
5/1
Scott Meyers
650 ₴
C++ Concurrency in Action: Practical Multithreading 1st edition
14353
Anthony Williams
780 ₴
C Programming for Arduino
13073
Julien Bayle
850 ₴
Data Parallel C++: Mastering DPC++ for Programming of Heterogeneous Systems using C++ and SYCL
253023
James ReindersBen AshbaughJames BrodmanMichael KinsnerJohn PennycookXinmin Tian
950 ₴
Tour of C++
14360
Bjarne Stroustrup
980 ₴
C++ Concurrency in Action 2nd Edition
273672
Anthony Williams
980 ₴
Expert C++: Become a proficient programmer by learning coding best practices with C++17 and C++20's latest features, 2nd Edition
264116
Marcelo Guerra HahnAraks TigranyanJohn AsatryanVardan GrigoryanShunguang Wu
1'300 ₴
Beginning C++ Compilers: An Introductory Guide to Microsoft C/C++ and MinGW Compilers 1st ed. Edition
269656
Berik I. TuleuovAdemi B. Ospanova
1'300 ₴
Design Patterns in Modern C++20. 2nd Ed.
244677
Dmitri Nesteruk
1'400 ₴
Today's TBB: C++ Parallel Programming with Threading Building Blocks Second Edition
309011
Michael J. VossJames R. Reinders
1'400 ₴
Modern C for Absolute Beginners. A Friendly Introduction to the C Programming Language. 1st Ed.
244702
Slobodan Dmitrovic
1'700 ₴
Fluent C: Principles, Practices, and Patterns
253605
Christopher Preschern
1'360 ₴1'700 ₴
Beginning C++23: From Beginner to Pro 7th ed. Edition
259110
Ivor HortonPeter Van Weert
1'700 ₴
Writing a C Compiler: Build a Real Programming Language from Scratch
283836
Nora Sandler
1'700 ₴
Programming: Principles and Practice Using C++, 2nd Edition
14352
Bjarne Stroustrup
1'750 ₴
Pointers in C Programming. A Modern Approach to Memory Management, Recursive Data Structures, Strings, and Arrays
153653
Thomas Mailund
1'900 ₴
Effective C, 2nd Edition: An Introduction to Professional C Programming
303267
Robert C. Seacord
1'900 ₴
Unifying Business, Data, and Code: Designing Data Products With JSON Schema 1st Edition
275694
Ron ItelmanJuan Cruz Viotti
1'700 ₴
Усе своє ношу з собою
306178
Вільям Лендей
460 ₴
Understanding DeFi: The Roles, Tools, Risks, and Rewards of Decentralized Finance 1st Edition
275776
Alexandra Damsker
1'700 ₴
Практикум з підготовки до ЄДІ. Тренувальні завдання тестової форми
5287
Л. Анеликова, О. Гусева
цену уточняйте