Modern C++ • C++20 baseline
What Modern C++ Is Good For
See how C++ combines direct resource control with high-level abstractions.
C++ is a compiled, statically typed language used for applications where performance, predictable resource use, and expressive abstractions all matter. Modern C++ is not just C with classes: its standard library, type system, and ownership idioms let programs express intent while retaining control over costs. This course uses C++20 as its baseline; later features are marked separately.
Key points
- Choose C++ when its runtime and deployment characteristics fit the product.
- Prefer standard-library facilities and value-oriented design before hand-written low-level machinery.
Example
#include <iostream>
#include <string>
int main() {
const std::string purpose = "learn by building";
std::cout << "C++: " << purpose << '\n';
}
What to expect
Practice exercise
Name a small command-line tool you would build in C++. Identify one performance constraint and one maintainability requirement.
Key idea: Good C++ balances explicit ownership with useful abstractions; it does not mean avoiding abstractions.