Загрузка страницы

CppCon 2019: Kate Gregory “Naming is Hard: Let's Do Better”

http://CppCon.org

Discussion & Comments: https://www.reddit.com/r/cpp/

Presentation Slides, PDFs, Source Code and other presenter materials are available at: https://github.com/CppCon/CppCon2019

C++ developers are famously bad at naming: our idioms, guidelines, and lore are rich in examples of terrible names. For example, consider RAII, which stands for scope bound resource management, or west const which perhaps should be const west, or all the samples that feature an object called x which is an instance of a class called X, and so on.

The good news is that naming well is a learned skill, and you can learn it, and start to name better right away. In this talk, I'll tell you why names matter, what benefits a good name can bring, and how to be better at naming. I'll discuss some categories of names and some common decisions within those categories. I'm not going to give you a set of rules to follow: this is about thinking and considering the meaning of the things you are naming. I will give you some questions to ask yourself and some structure that I use to help me to help those who read what I write.

I'll also address renaming things in existing (legacy) code, why and when to do it, and why getting it right the first time may not even be a realistic goal. You should be a lot more confident naming things after we spend this time together.

Kate Gregory
Gregory Consulting
Partner

Kate Gregory has been using C++ since before Microsoft had a C++ compiler. She writes, mentors, codes, and leads projects, in both C++ and .NET, especially for Windows. Kate is a Microsoft Regional Director, a Visual C++ MVP, has written over a dozen books, and speaks at conferences and user groups around the world. Kate develops courses on C++, Visual Studio, and Windows programming for Pluralsight.

Videos Filmed & Edited by Bash Films: http://www.BashFilms.com

*-----*
Register Now For CppCon 2022: https://cppcon.org/registration/
*-----*

Видео CppCon 2019: Kate Gregory “Naming is Hard: Let's Do Better” канала CppCon
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
8 октября 2019 г. 12:00:04
00:59:36
Другие видео канала
CppCon 2016: Casey Carter “Iterator Haiku"CppCon 2016: Casey Carter “Iterator Haiku"CppCon 2014: T. Grue & S. Kabbes "A Deep Dive into 2 Cross-Platform Mobile Apps Written in C++"CppCon 2014: T. Grue & S. Kabbes "A Deep Dive into 2 Cross-Platform Mobile Apps Written in C++"EDSL Infinity Wars: Mainstreaming Symbolic Computation - Joel Falcou & Vincent Reverdy - CppCon 2019EDSL Infinity Wars: Mainstreaming Symbolic Computation - Joel Falcou & Vincent Reverdy - CppCon 2019Leaving No Input Unsanitized - Gabriel Aubut-Lussier - CppCon 2019Leaving No Input Unsanitized - Gabriel Aubut-Lussier - CppCon 2019Catch ⬆️: Unicode for C++23 - JeanHeyd Meneide - CppCon 2019Catch ⬆️: Unicode for C++23 - JeanHeyd Meneide - CppCon 2019CppCon 2017: Teresa Johnson “ThinLTO: Scalable and Incremental Link-Time Optimization”CppCon 2017: Teresa Johnson “ThinLTO: Scalable and Incremental Link-Time Optimization”Taskflow: A Parallel and Heterogeneous Task Programming System Using Modern C++ - Tsung-Wei HuangTaskflow: A Parallel and Heterogeneous Task Programming System Using Modern C++ - Tsung-Wei HuangCppCon 2015: Pablo Halpern “Work Stealing"CppCon 2015: Pablo Halpern “Work Stealing"CppCon 2016: Klaus Iglberger “The Blaze High Performance Math Library"CppCon 2016: Klaus Iglberger “The Blaze High Performance Math Library"CppCon 2017: Matt Godbolt “What Has My Compiler Done for Me Lately? Unbolting the Compiler's Lid”CppCon 2017: Matt Godbolt “What Has My Compiler Done for Me Lately? Unbolting the Compiler's Lid”CppCon 2018: Valentin Galea “Rapid Prototyping of Graphics Shaders in Modern C++”CppCon 2018: Valentin Galea “Rapid Prototyping of Graphics Shaders in Modern C++”CppCon 2019: Emery Berger “Mesh: Automatically Compacting Your C++ Application's Memory”CppCon 2019: Emery Berger “Mesh: Automatically Compacting Your C++ Application's Memory”CppCon 2017: Juan Pedro Bolivar Puente “Postmodern immutable data structures”CppCon 2017: Juan Pedro Bolivar Puente “Postmodern immutable data structures”CppCon 2019: David Olsen “Faster Code Through Parallelism on CPUs and GPUs”CppCon 2019: David Olsen “Faster Code Through Parallelism on CPUs and GPUs”CppCon 2019: Ben Saks “Back to Basics: Exception Handling and Exception Safety”CppCon 2019: Ben Saks “Back to Basics: Exception Handling and Exception Safety”C++17 in Breadth (part 2 of 2) - Alisdair Meredith [ CppCon 2016 ]C++17 in Breadth (part 2 of 2) - Alisdair Meredith [ CppCon 2016 ]A C++ Approach to Physical Units - Mateusz Pusz - CppCon 2019A C++ Approach to Physical Units - Mateusz Pusz - CppCon 2019Deep CMake for Library Authors - Craig Scott - CppCon 2019Deep CMake for Library Authors - Craig Scott - CppCon 2019CppCon 2019: Matt Godbolt “Path Tracing Three Ways: A Study of C++ Style”CppCon 2019: Matt Godbolt “Path Tracing Three Ways: A Study of C++ Style”CppCon 2018: Matt Godbolt “The Bits Between the Bits: How We Get to main()”CppCon 2018: Matt Godbolt “The Bits Between the Bits: How We Get to main()”CppCon 2019: Matt Godbolt “Compiler Explorer: Behind The Scenes”CppCon 2019: Matt Godbolt “Compiler Explorer: Behind The Scenes”
Яндекс.Метрика