Skip to content

Latest commit

 

History

History

docs

README.md

C++ Learning Documentation

Complete Guide to Mastering Modern C++ (C++23)


📚 Overview

This documentation complements the practical code in src/, providing in-depth theoretical foundations, learning paths, and best practices for mastering C++.

Philosophy: Learn from first principles - understand the machine, then build abstractions.


📁 Documentation Structure

docs/
├── 00_foundations/              # Theoretical foundations
├── 01_learning_path/            # Learning roadmap & milestones
├── 02_memory_mastery/          # Deep dive into memory management
├── 03_zero_cost_abstractions/  # Understanding zero-cost abstractions
├── 04_stl_mastery/             # Standard Template Library mastery
├── 05_modern_cpp/              # Modern C++ features (11/14/17/20/23)
├── 06_best_practices/          # Code style, design patterns, safety
├── 07_toolchain/               # Build, debug, optimize
├── 08_advanced_topics/         # Concurrency, graphics, embedded
├── 09_interviews/              # Interview prep & career
├── cheatsheets/                # Quick reference guides
├── exercises/                  # Practice problems
├── resources/                  # Books, videos, learning materials
└── projects/                   # Project ideas and templates

🎯 Quick Start

  1. Start Here: 00_foundations/01_first_principles.md

    • Understand what makes C++ unique
    • Learn the three pillars: memory control, compile-time computation, zero-cost abstraction
  2. Your Path: 01_learning_path/01_roadmap.md

    • Complete learning roadmap
    • Skill milestones
    • Practice projects
  3. Learn by Doing: Combine docs with src/ code

    • Read theory → Write code → Experiment

📖 How to Use This Documentation

For Beginners

  1. Read 00_foundations/01_first_principles.md
  2. Follow the learning path in 01_learning_path/
  3. Reference docs while completing code lessons

For Intermediate Learners

  1. Deep dive into specific topics in 02-08/
  2. Use 06_best_practices/ to improve code quality
  3. Study real-world patterns

For Advanced Users

  1. Master advanced topics in 08_advanced_topics/
  2. Prepare for interviews with 09_interviews/
  3. Contribute to project development

🔗 Documentation to Code Mapping

Docs Code Status
02_memory_mastery/ src/01_memory_control/ ✅ Complete
03_zero_cost_abstractions/ src/02_zero_cost_abstraction/ 📝 Planned
04_stl_mastery/ src/03_toolbox/01_stl/ 📝 Planned
05_modern_cpp/ src/03_toolbox/02_modern_features/ 📝 Planned
07_toolchain/ src/03_toolbox/03_compilation/ 📝 Planned

📊 Learning Progress Tracker

Complete

Module Progress Lessons
Memory Control 100% 16 lessons

In Progress

Module Progress
Zero-Cost Abstraction 0%
Toolbox 0%

🎓 Recommended Reading Order

Phase 1: Foundations (1-2 weeks)

  1. 00_foundations/01_first_principles.md
  2. 00_foundations/02_hardware_fundamentals.md
  3. 01_learning_path/01_roadmap.md

Phase 2: Memory Mastery (3-4 weeks)

  1. Complete src/01_memory_control/ lessons
  2. Read 02_memory_mastery/ documentation
  3. Practice with projects

Phase 3: Zero-Cost Abstraction (4-6 weeks)

  1. Study class design and move semantics
  2. Learn smart pointers inside out
  3. Template fundamentals

Phase 4: Toolbox (4-6 weeks)

  1. Master STL containers and algorithms
  2. Learn modern C++ features
  3. Understand build systems

💡 Key Principles

First Principles

"C++ is about hardware mapping and efficient abstraction"

  • Understand memory layout
  • Control object lifetime
  • Leverage compile-time computation
  • Pay only for what you use

Learning Approach

  1. Theory → Practice → Mastery

    • Read concept
    • Write code
    • Experiment and measure
  2. From Low-Level to High-Level

    • Start with memory
    • Add abstractions
    • Build complex systems
  3. Always Question "Why?"

    • Why use this feature?
    • What's the cost?
    • What's the alternative?

🚀 Getting Started

  1. Clone the repository:

    git clone https://github.com/Clearzero22/cpp-step-by-step
    cd cpp-step-by-step
  2. Read the first principles:

    • docs/00_foundations/01_first_principles.md
  3. Start coding:

    • cmake -G Ninja -B build
    • cmake --build build
    • ./build/bin/lesson01_stack_heap.exe
  4. Follow the path:

    • docs/01_learning_path/01_roadmap.md

📚 Additional Resources

Cheatsheets (cheatsheets/)

Quick reference guides for C++ syntax and features:

  • C++ Syntax - Variable, functions, classes, templates
  • STL Containers - Container selection and usage
  • Modern C++ - C++11 to C++23 features at a glance

Perfect for quick lookups while coding!


Exercises (exercises/)

Practice problems organized by difficulty:

  • Basics (01_basics/) - Variables, control flow, functions
  • Intermediate (02_intermediate/) - Memory, OOP, templates
  • Advanced - Concurrency, systems, performance

25+ exercises with solutions and test cases.


Resources (resources/)

Curated learning materials:

  • Books - Essential C++ reading list
  • Videos - YouTube channels, conference talks
  • Online - Interactive tutorials, references

Everything you need to supplement your learning.


Projects (projects/)

Build real applications to practice your skills:

  • CLI Apps - Console-based applications
  • Games - Interactive game projects
  • Data Structures - Implement from scratch

16+ project ideas with templates and guidelines.


Status: 📝 Under Active Development Version: 1.0.0 Last Updated: 2026-02-03