- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
Part 51 Taming Dragons with Stroustrup's Blade - Exception Handling with Templates, Enum & try/catch
In this episode of "Taming Dragons with Stroustrup's Blade", we dive into the different approaches to error handling and correction in C++. From template-based error validation to POSIX-style errno handling and modern try/catch blocks, we cover the full spectrum of techniques used by developers to write robust and reliable code.
Learn how to design error-handling strategies using enums, templates, and exceptions, while also comparing traditional C-style approaches with C++ best practices.
⏰ Timestamps:
00:00 ▶️ Error Handling and Correction in C++
02:00 ▶️ Exception Handling with Templates
03:50 ▶️ Error Validation with Templates and Enums
07:00 ▶️ Error Detection by Return Value (Enum Identifier)
11:50 ▶️ POSIX-Style Error Handling with errno Global Variable
15:45 ▶️ Modern Exception Handling with try and catch
📌 What You'll Learn:
• Multiple strategies for error handling in C++
• How to use templates and enums for compile-time and runtime error validation
• The differences between return-value-based error detection vs. exceptions
• How POSIX systems handle errors with errno
• Why try/catch is the modern approach for robust applications
🛠 Tools & Concepts:
• C++ Templates & Enums for error validation
• POSIX-style error handling (errno)
• Return value error detection
• Exception handling with try, catch, and throw
• Designing reliable error correction strategies
📢 Community & Resources:
🌐 Website: https://acql.ir
📸 Instagram: aiooo_cql
📢 Telegram: @aioooir
🐦 Twitter: @aioooir
💻 GitHub: https://github.com/aiooord
🧪 Challenge for Viewers:
Implement a small calculator program in C++ that:
Uses enums to detect and report errors (e.g., division by zero).
Logs errors using POSIX-style errno.
Finally, refactor the same program using try and catch with std::invalid_argument. Compare the readability and maintainability of each approach.
Видео Part 51 Taming Dragons with Stroustrup's Blade - Exception Handling with Templates, Enum & try/catch канала Ai000 Cybernetics QLab
Learn how to design error-handling strategies using enums, templates, and exceptions, while also comparing traditional C-style approaches with C++ best practices.
⏰ Timestamps:
00:00 ▶️ Error Handling and Correction in C++
02:00 ▶️ Exception Handling with Templates
03:50 ▶️ Error Validation with Templates and Enums
07:00 ▶️ Error Detection by Return Value (Enum Identifier)
11:50 ▶️ POSIX-Style Error Handling with errno Global Variable
15:45 ▶️ Modern Exception Handling with try and catch
📌 What You'll Learn:
• Multiple strategies for error handling in C++
• How to use templates and enums for compile-time and runtime error validation
• The differences between return-value-based error detection vs. exceptions
• How POSIX systems handle errors with errno
• Why try/catch is the modern approach for robust applications
🛠 Tools & Concepts:
• C++ Templates & Enums for error validation
• POSIX-style error handling (errno)
• Return value error detection
• Exception handling with try, catch, and throw
• Designing reliable error correction strategies
📢 Community & Resources:
🌐 Website: https://acql.ir
📸 Instagram: aiooo_cql
📢 Telegram: @aioooir
🐦 Twitter: @aioooir
💻 GitHub: https://github.com/aiooord
🧪 Challenge for Viewers:
Implement a small calculator program in C++ that:
Uses enums to detect and report errors (e.g., division by zero).
Logs errors using POSIX-style errno.
Finally, refactor the same program using try and catch with std::invalid_argument. Compare the readability and maintainability of each approach.
Видео Part 51 Taming Dragons with Stroustrup's Blade - Exception Handling with Templates, Enum & try/catch канала Ai000 Cybernetics QLab
Комментарии отсутствуют
Информация о видео
16 августа 2025 г. 13:57:37
00:22:52
Другие видео канала
