ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

Cppcon 2018 andrei alexandrescu expect the expected

Автор: CodeIgnite

Загружено: 2025-03-13

Просмотров: 6

Описание: Download 1M+ code from https://codegive.com/bf8ba15
andrei alexandrescu's "expect the expected" at cppcon 2018: a deep dive

andrei alexandrescu's "expect the expected" talk at cppcon 2018 explores a powerful technique for improving code reliability and performance by leveraging compile-time guarantees about the expected state of variables and data structures. he argues that by explicitly encoding these expectations into your code, you can:

*detect errors earlier:* fail at compile time or during testing, rather than encountering unexpected behavior in production.
*improve performance:* allow the compiler to optimize code based on the guaranteed properties of your data.
*enhance code readability:* make the intent of the code clearer to other developers (and your future self).

this tutorial will break down the key concepts from alexandrescu's talk, providing code examples and explanations to help you understand and apply these techniques in your c++ projects.

*i. the problem: implicit expectations and hidden assumptions*

a significant portion of bugs arise from unexpected states in variables or data structures. these often stem from implicit expectations – assumptions we make about the valid range, properties, or lifecycle of data. consider this simple example:



here, we expect `value` to be non-negative. however, this expectation is only encoded within the function's logic. if a negative value slips through (perhaps from another part of the program), the `process_value` function has to handle it, usually through error checking and a potentially less-than-ideal fallback.

*the issues:*

*runtime checks:* error handling happens at runtime, potentially causing a performance hit.
*delayed detection:* the error might not be discovered until the code is running in production.
*hidden intent:* the expectation is only apparent by reading the code, not explicit in the type system.
*fallback mechanisms:* the code needs to define what to do when the expectation is ...

#CppCon #AndreiAlexandrescu #ExpectTheExpected

Cppcon 2018
Andrei Alexandrescu
C++
programming
software development
modern C++
generic programming
design patterns
performance optimization
code quality
software engineering
template metaprogramming
concurrency
algorithms
best practices

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
Cppcon 2018 andrei alexandrescu expect the expected

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

CppCon 2018: Andrei Alexandrescu “Expect the expected”

CppCon 2018: Andrei Alexandrescu “Expect the expected”

Мира до конца года не будет? Война России и Европы неизбежна? Угроза полной блокировки мессенджеров

Мира до конца года не будет? Война России и Европы неизбежна? Угроза полной блокировки мессенджеров

Принц Персии: разбираем код гениальной игры, вытирая слезы счастья

Принц Персии: разбираем код гениальной игры, вытирая слезы счастья

Чего ждать от рефлексии в C++26

Чего ждать от рефлексии в C++26

ESP32: распознавание речи нейросетью (TensorFlow Lite)

ESP32: распознавание речи нейросетью (TensorFlow Lite)

Ночные пробуждения в 3–4 часа: как найти причину и вернуть глубокий сон.

Ночные пробуждения в 3–4 часа: как найти причину и вернуть глубокий сон.

Teppop в Сиднее: Подробности жуткой стрельбы на пляже Австралии

Teppop в Сиднее: Подробности жуткой стрельбы на пляже Австралии

CppCon 2015: Andrei Alexandrescu “std::allocator...”

CppCon 2015: Andrei Alexandrescu “std::allocator...”

Немецкие Инженеры Испытали Захваченный «Шерман» — А Потом Признали, Что Никогда Не Создавали

Немецкие Инженеры Испытали Захваченный «Шерман» — А Потом Признали, Что Никогда Не Создавали

Алесь Бяляцкі: Мы не бачым пакуль што святла ў тунэлі, але мусім ісці наперад #беларусь

Алесь Бяляцкі: Мы не бачым пакуль што святла ў тунэлі, але мусім ісці наперад #беларусь

Kubernetes — Простым Языком на Понятном Примере

Kubernetes — Простым Языком на Понятном Примере

КОНЕЦ газовой мечте: газ в США начал РЕКОРДНО дорожать

КОНЕЦ газовой мечте: газ в США начал РЕКОРДНО дорожать

Создавайте лучшие веб-приложения с Blazor в .NET 10

Создавайте лучшие веб-приложения с Blazor в .NET 10

Старый МАК лучше современных ноутов!? Ремонт MacBook Pro 15 1013 a1398

Старый МАК лучше современных ноутов!? Ремонт MacBook Pro 15 1013 a1398

Wojna w 2026? Podsumowanie roku na froncie. Rosja wygrywa? — płk Piotr Lewandowski i Zychowicz

Wojna w 2026? Podsumowanie roku na froncie. Rosja wygrywa? — płk Piotr Lewandowski i Zychowicz

К чему готовится Лукашенко? | «Новости» с Чалым

К чему готовится Лукашенко? | «Новости» с Чалым

The next big Thing - Andrei Alexandrescu - Meeting C++ 2018 Opening Keynote

The next big Thing - Andrei Alexandrescu - Meeting C++ 2018 Opening Keynote

НЕВЕРОЯТНО БЫСТРЫЕ оптимизации C++

НЕВЕРОЯТНО БЫСТРЫЕ оптимизации C++

Сокуров напомнил Путину о проблемах внутри России (English subtitles) @Max_Katz

Сокуров напомнил Путину о проблемах внутри России (English subtitles) @Max_Katz

Haskell, python и прочие приблуды. Прохожу машину HaskHell на TryHackMe, уровень средний!

Haskell, python и прочие приблуды. Прохожу машину HaskHell на TryHackMe, уровень средний!

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]