У нас вы можете посмотреть бесплатно No More Booleans! или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
Designing API's is hard work with lots of traps. Even worse is the situation when you later maintain the code and just need a function to behave slightly different in different situations. I'll start this episode by bashing Qt 3, where you could write update(false). What does that mean? Do not update? I'll take this to the extreme and suggest that you ban boolean arguments to functions altogether. Instead, I'll show how enums and flags help make your code much more readable. https://wiki.qt.io/API_Design_Principles 0:00 Comparing QSlider API between Qt3 and Qt4 1:52 Qt3: update(false) ← what does that mean? 3:09 Going from booleans to enums 4:45 party(false, false, true) converted to bitwised-or flags 6:38 bitwise flags in the DepecheModel 8:18 The exceptions where it is OK to use booleans The example code showcased in this video is available here: https://github.com/KDAB/kdabtv/tree/m... Qt DevCon is a conference for the Qt developer community and focuses exclusively on developer topics. This year, it will will take place in Berlin, Germany from 14th to 15th June 2022: https://www.qtdevcon.com/ QtDevCon programme: https://www.qtdevcon.com/tuesday-14th... QtDevCon training day info: https://www.qtdevcon.com/training-day/ Registration: https://www.qtdevcon.com/tickets/ All QML tips and tricks videos : • QML Tips and Tricks All Qt Widgets and more videos: • Qt Widgets and more About the host: The video is presented by Jesper Pedersen, who started with Qt back when Qt was widgets only and the version was 1.44, which gives him 21 years of experience with Qt. Since 2000 he has taught almost 100 Qt classes, ranging from Qt Widgets to QML. Heck, Jesper even taught a few classes on QTopia Core — Trolltech's initial attempt at creating a phone stack. Today Jesper holds a fancy business title, but that doesn't prevent him from coding both in his job and in his spare time. Every month our newsletter is featuring technical blogs on Qt, C++ and 3D topics: https://www.kdab.com/development-reso... About KDAB: KDAB offers experienced software experts to help you deliver functional, high-performing and innovative software across embedded, mobile and desktop platforms for projects using C++, Qt, QML/Qt Quick, OpenGL, Qt 3D and more. https://www.kdab.com/software-services KDAB experts regularly take time out to deliver KDAB’s world class training, in-house or at open enrollment courses around the world. We are the market leaders for training in Qt, OpenGL and C++. Contact us to find out more at training@kdab.com or visit our website: https://www.kdab.com/software-service... We are about 90 people, located all around the world. Our Head Office is in Sweden and we have other offices in Germany, France, the UK and the USA. https://www.kdab.com/about/contact/