Přeskočit na obsah
Modul 8

Modern C++ & Best Practices

The latest C++ standards (C++17/20/23/26), build systems, testing practices, and professional coding guidelines.

C++17 & C++20 Features

  1. C++17: The Practical Standard

    Explore C++17's most impactful features: structured bindings, std::optional/variant/any, std::string_view, std::filesystem, if constexpr, and new attributes.

  2. C++20: Velká čtyřka a další

    Discover C++20's transformative features: concepts, ranges, the spaceship operator, std::format, designated initializers, std::span, and more.

  3. C++20 Coroutines

    Chápejte korutiny jako suspendovatelné funkce. Naučte se co_yield, co_return, co_await, vzor generátoru a praktické případy použití, jako jsou asynchronní I/O a stavové stroje.

  4. C++20 Modules

    Přečtěte si, proč moduly nahrazují záhlaví, jak deklarovat a exportovat moduly, oddíly modulů a cestu přechodu z kódu založeného na záhlaví.

C++23 & Beyond

  1. C++23 & C++26 Preview

    Explore C++23's std::expected, std::print, deducing this, ranges improvements, and preview upcoming C++26 features like contracts, reflection, and pattern matching.

Professional C++ Practices

  1. Build Systems: CMake & Package Management

    Master CMake fundamentals, modern target-based CMake, FetchContent for dependencies, vcpkg and Conan package managers, and compiler flags for safe, optimized builds.

  2. Testování, srovnávání a dezinfekce

    Pište jednotkové testy pomocí GoogleTest, srovnávejte pomocí Google Benchmark, odhalujte chyby pomocí dezinfekčních prostředků (ASan, UBSan, TSan) a integrujte statickou analýzu do svého kanálu CI/CD.

  3. Základní pokyny a profesionální vzory C++

    Learn the C++ Core Guidelines, naming conventions, const correctness, API design principles, documentation practices, performance profiling, and production debugging techniques.