У нас вы можете посмотреть бесплатно Building Cpp Interfaces That Are Hard to Use Incorrectly - Andreas Weis - CppNorth 2023 или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
https://www.cppnorth.ca --- Building Cpp Interfaces That Are Hard to Use Incorrectly - Andreas Weis - CppNorth 2023 C++ is a language with many sharp edges. Besides the core language providing plenty of features that allow users to shoot themselves in the foot, higher-level library interfaces are also often designed with complex preconditions, the violation of which can again lead to undefined behavior and results that are just as unpredictable as what results from misuse of a lower level language feature. Fortunately, through clever use of the C++ type system we can design interfaces in a way that makes them much harder to misuse accidentally and drastically reduce the opportunities for bugs in user code. In this talk, we will present a number of design techniques that allow library designers to reduce the possibilities of misuse by their users, by pushing the detection of precondition violations from run-time to compile-time. We will show how to distinguish different categories of preconditions and how we can use the C++ type system to prevent accidental violation of those preconditions at run-time. We will demonstrate with a number of code samples how the use of such type-based techniques prevents interface misuse in practice and take a look at the trade-offs that arise from such an approach. --- Slides: https://github.com/CppNorth/CppNorth_... Sponsored By: think-cell: https://www.think-cell.com/cppnorth JetBrains: https://www.jetbrains.com/ --- Andreas Weis Andreas Weis has been writing C++ code in many different domains, from real-time graphics, to distributed applications, to embedded systems. As a library writer by nature, he enjoys writing portable code and exposing complex functionalities through simple, richly-typed interfaces. Both of which C++ allows him to do extensively. Andreas is also one of the co-organizers of the Munich C++ User Group, which allows him to share this passion with others on a regular basis. He currently works for Woven by Toyota, where he focuses on building modern software for use in safety critical systems. --- CppNorth is an annual C++ conference held in Toronto, Canada. Annual CppNorth C++ conference: https://cppnorth.ca/ CppNorth Twitter: / cppnorth --- YouTube Videos Edited & Optimised by Digital Medium: https://events.digital-medium.co.uk #cppnorth #cpp #programming