Skip to content
cppcoding.dev

Topics

Check out the topics that interest you.

C Basics

First C programs: types, operators, control flow, functions, arrays, structs, pointers, malloc and free, and the preprocessor, compiled and run from the command line with GCC and Clang.

C++ Basics

First C++ programs: references, classes, constructors, std::string, std::vector, namespaces, RAII and smart pointers, written the modern way from day one.

Classes

Object-oriented C++: constructors and destructors, the rule of zero, three and five, inheritance, virtual functions, operator overloading and value types.

Strings

C strings and their traps, std::string and std::string_view, parsing, formatting, Unicode and UTF-8, and text processing that does not overflow.

Input and Output

stdio and iostreams, files and binary formats, std::filesystem, command-line arguments, environment variables and talking to the operating system.

Standard Library

Containers, iterators, algorithms, std::optional, std::variant, std::expected, std::format, chrono and filesystem, and the C standard library underneath.

Modern C++

C++11 through C++26: move semantics, lambdas, auto, constexpr, ranges, concepts, modules, coroutines and what each standard changed for everyday code.

Templates

Function and class templates, specialisation, variadic templates, SFINAE, type traits, concepts and template metaprogramming without the pain.

Data Structures

Linked lists, dynamic arrays, hash tables, trees, heaps and graphs built by hand in C and C++, and when the standard containers do it better.

Algorithms

Sorting, searching, recursion, dynamic programming and graph algorithms in C and C++, with the complexity and the standard algorithm that already exists.

Concurrency

std::thread, mutexes, condition variables, atomics and the memory model, futures, pthreads, C11 threads, thread pools and the data races each one invites.

Performance

Profiling, benchmarking, cache-friendly data layout, inlining, vectorisation, compiler optimisation and reading the assembly your code turned into.

Libraries

Writing and using libraries: headers and linking, static and shared libraries, CMake, vcpkg and Conan, and popular libraries such as Boost, fmt and Qt.

Testing

GoogleTest, Catch2 and doctest, unit tests, sanitizers, fuzzing, code coverage and continuous integration for C and C++ projects.

Security

Buffer overflows, integer overflow, use-after-free and the other memory-safety bugs, secure coding standards, hardening flags and static analysis.

Networking

BSD sockets, TCP and UDP servers, non-blocking I/O, epoll and io_uring, Boost.Asio and HTTP clients written in C and C++.

Interop

The C ABI, extern "C", calling C from C++ and both from Python, Rust and other languages, plugins, dynamic loading and stable library interfaces.