TechnologyExplain Like I'm 5Beginner
Writing Reliable C++, a free technology course on Tomo

Writing Reliable C++

Learn to write fast, correct C++ programs from your very first line of code. Build a practical mental model of variables, functions, and objects, and discover how modern C++ manages memory safely without the headaches of legacy code.

Like Duolingo, but for Writing Reliable C++. Tomo turns the whole topic into a game you play five minutes a day, until it actually sticks.

23 levels across 4 sections, about 46 minutes end to end, roughly 9 days at five minutes a day. It moves through Getting Code to Run, Organizing Code and Data, Designing Custom Types, and Understanding Memory and Ownership. It starts from scratch.

23 bite-size levelsAbout 5 minutes each

Free forever · No credit card · iPhone & Android

Coby the Chameleon, the guide who teaches the Writing Reliable C++ course
Writing Reliable C++
with Coby the Chameleon
23
Levels
4
Sections
5
Min/day
What you'll learn

Key ideas in Writing Reliable C++

  • A C++ compiler translates source code directly into machine instructions tailored to the processor
  • Because it compiles down to native machine code, C++ programs run directly on the hardware without needing a virtual machine or interpreter layer at runtime
  • The operating system looks for a function named main to know where to begin executing a C++ executable
  • Even if other functions appear earlier in the C++ file, execution always kicks off at main
  • std::cout paired with << pushes character data outward to the console display
  • std::cin paired with >> pulls character data inward from standard input into a variable
  • The chevron arrows point in the actual direction data travels (into cout, or out of cin into a variable)
  • C++ is statically typed, requiring variable types to be declared upfront
  • The C++ compiler inspects every assignment and flags type mismatches during compilation, preventing invalid programs from building
  • C++ evaluates if conditions in order from top to bottom
  • Once a condition evaluates to true, C++ executes that block and skips the rest of the if-else chain
  • The else block runs only if none of the preceding if or else if conditions were met
  • A C++ for loop bundles initialization, condition check, and increment into one line, making it ideal when the count or range is known in advance
  • A C++ while loop checks a condition before each cycle, making it natural when repeating until an unpredictable event occurs
  • Variables declared inside a set of braces {} exist only within that block
  • When execution exits the closing brace }, C++ destroys variables declared inside that block, making them inaccessible outside
Why not just Google it

You've tried the other tabs

Wikipedia

Thirty open tabs. Four facts you actually kept.

YouTube

You watched. You nodded. By Sunday it was gone.

ChatGPT

One answer, then back to scrolling.

Online courses

Eight weeks. You meant to finish. You didn't.

Tomo gives Writing Reliable C++ the Duolingo treatment: levels, streaks, and quick quizzes that test what you just learned. That game loop is what the tabs above never had, so it's the one you actually finish.

Try a question

Here's what playing it feels like

A real question from this course. Take your best guess.

How Your Computer Runs C++

What does a C++ compiler do with the code you write?

Get it right to open this lesson and 22 more in the app.

Course map

Where Writing Reliable C++ takes you

  1. 1

    Getting Code to Run

    • Your First Running Program
    • Controlling Execution Flow
  2. 2

    Organizing Code and Data

    • Packaging Logic with Functions
    • Working with Collections of Data
  3. 3

    Designing Custom Types

    • Modeling Data with Classes
    • Object Lifetimes and Cleanup
  4. 4

    Understanding Memory and Ownership

    • Peeking Under the Hood with Pointers
    • Managing Dynamic Memory Safely

4 sections · 8 units · 23 levels. Built to play, not to enroll.

New

Tomo is in ChatGPT

Tomo is also a ChatGPT plugin: the same playable courses, built and played inside your chat.

Add Tomo to ChatGPT
How it's taught

You pick the voice

This course
Explain Like I'm 5

Writing Reliable C++ is taught in the Explain Like I'm 5 style: no big words. promise.. Want a different feel? In the app you can spin up the same topic in any of Tomo's teaching styles. Same facts, totally different vibe.

Keep going

More Technology on Tomo

Start free

Start Writing Reliable C++ today.

Download Tomo, search Writing Reliable C++, and play your first lesson in under a minute.