RAII Design Patterns in Modern C++: Engineering Safe Resource Ownership, Deterministic Lifetime Management, and Exception-Safe Systems

Prijzen vanaf
31,99

Uitgelicht

VERGELIJK ALLE AANBIEDERS (3)

Beschrijving

Bol Every C++ program touches resources it must give back - memory, files, sockets, locks, connections. Get the handoff wrong, and you leak, deadlock, or crash in ways that only show up under pressure, in production, at the worst possible time. RAII is the language feature that turns "remember to clean up" into a guarantee you never have to think about again.This book teaches you to write C++ that cannot leak - not because you were careful, but because the language won't let it. You'll go from the basic constructor/destructor mechanism all the way to designing ownership for real, concurrent, multi-module systems. No filler. Just the reasoning, the code, and the why behind every rule.What's Inside- The core RAII contract, and why it's a guarantee, not a convention- Ownership design: exclusive vs. shared, and how to choose correctly- unique_ptr and shared_ptr - internals, real costs, and real traps- Exception safety: the three guarantees, explained with actual function signatures- RAII for locks, threads, and condition variables - where getting it wrong means deadlock, not just a leak- Building your own RAII wrappers for sockets, file handles, and OS resources- The Rule of Zero and Rule of Five - how much boilerplate you actually need- Spotting RAII anti-patterns in code review, before they ship- Migrating a legacy codebase to RAII, one safe step at a timeYou already write C++. Maybe you've used unique_ptr without fully trusting it. Maybe you've inherited a codebase full of manual new/delete pairs and a nagging feeling about all of them. This book is for engineers building systems where a resource leak or a deadlock is not an inconvenience - it's an outage. No prior RAII expertise assumed. A working knowledge of C++ is enough to start.Every unmanaged resource in your codebase is a bug waiting for the right exception at the right moment. You can keep hoping every exit path was covered by hand - or you can make that question irrelevant.Open Chapter 1. Let the language do the remembering for you.

Vergelijk aanbieders (3)

Sorteren op:

€ 31,99 Gratis verzending

€ 32,65 Gratis verzending

€ 32,65 Gratis verzending

Beschrijving (1)

Every C++ program touches resources it must give back - memory, files, sockets, locks, connections. Get the handoff wrong, and you leak, deadlock, or crash in ways that only show up under pressure, in production, at the worst possible time. RAII is the language feature that turns "remember to clean up" into a guarantee you never have to think about again.This book teaches you to write C++ that cannot leak - not because you were careful, but because the language won't let it. You'll go from the basic constructor/destructor mechanism all the way to designing ownership for real, concurrent, multi-module systems. No filler. Just the reasoning, the code, and the why behind every rule.What's Inside- The core RAII contract, and why it's a guarantee, not a convention- Ownership design: exclusive vs. shared, and how to choose correctly- unique_ptr and shared_ptr - internals, real costs, and real traps- Exception safety: the three guarantees, explained with actual function signatures- RAII for locks, threads, and condition variables - where getting it wrong means deadlock, not just a leak- Building your own RAII wrappers for sockets, file handles, and OS resources- The Rule of Zero and Rule of Five - how much boilerplate you actually need- Spotting RAII anti-patterns in code review, before they ship- Migrating a legacy codebase to RAII, one safe step at a timeYou already write C++. Maybe you've used unique_ptr without fully trusting it. Maybe you've inherited a codebase full of manual new/delete pairs and a nagging feeling about all of them. This book is for engineers building systems where a resource leak or a deadlock is not an inconvenience - it's an outage. No prior RAII expertise assumed. A working knowledge of C++ is enough to start.Every unmanaged resource in your codebase is a bug waiting for the right exception at the right moment. You can keep hoping every exit path was covered by hand - or you can make that question irrelevant.Open Chapter 1. Let the language do the remembering for you.


Productspecificaties

Merk Independently Published
EAN
  • 9798194677870
Maat


Prijshistorie

* Prijshistorie bevat geen data van Amazon, Amazon Marketplace.

Prijzen voor het laatst bijgewerkt op:

Uitgelichte Keuze
31,99
Naar shop