Part 2, Lifting the floor

11 chapters on what is actually happening

Part 1 taught you to write C++. Part 2 goes back and shows you the machinery underneath: where your variables live, what a pointer really is, what std::string was hiding, and why half of C++'s reputation comes from bugs that look like they work.

What you get

  1. 22What a Variable Really IsMemory, addresses, sizeof, and the stack.
  2. 23Pointers, FinallyThe star and the ampersand, and why they were worth waiting for.
  3. 24What std::string Was Hidingchar arrays and the zero byte you never saw.
  4. 25Raw Arrays, and Why vector ExistsNo size, no bounds checking, and the moment an array stops being one.
  5. 26The Heap, new, delete, and What Goes WrongManual memory, so you can read old code.
  6. 27Ownership, Destructors Doing the WorkRAII and unique_ptr.
  7. 28Templates, One Function, Any TypeThe angle brackets from chapter 10, explained at last.
  8. 29Iterators, and What range-for Becomesbegin, end, and lambdas properly.
  9. 30Borrowing Without OwningReferences, pointers, string_view, and dangling.
  10. 31Undefined Behaviour, When C++ Stops PromisingSanitizers, and reading a crash.
  11. 32Where to Go Nextcppreference, C++20 and 23, and reading other people's code.

Every chapter's summary and project are readable without buying, so you can see what is in each one before you decide.

$19

Coming soon

Part 2 is written and finished, and it goes on sale shortly. Part 1 is free, complete, and 22 chapters long in the meantime, so there is plenty to be getting on with.

Before you buy

Is Part 1 going to stay free?

Yes, permanently. Twenty-two chapters, no account, no email required. That promise is what makes this one credible rather than a trial.

Do I need Part 2?

Not to write working programs. You finished Part 1 and can build real things. You need it when you want to know why those things work, when you have to read somebody else's C++, or when a program does something that makes no sense and you have no model to reason with.

What if I lose the key?

Your key is shown on the page you land on straight after paying, so save it there. If it is gone, reply to your Stripe receipt with the email address you paid with and we will look it up.

Is there a PDF?

Not yet. This buys you the chapters on the web, which is where they are written, kept current, and readable on a phone.

← Back to the contents