Writing C++ to Be Read
Most developers spend more time reading code than writing code, and teams include developers with varying levels of C++ proficiency. This talk is a collection of advice on how to write simple code that states your intent clearly so that both you and your coworkers can understand it and maintain it.
I'll show how following the rule of zero and using aggregates can lead to code that is simpler, shorter, and easier to get right, by leveraging the code the compiler writes for you. I'll demonstrate a compelling use case for designated initializers. Learn how to form a common understanding among your coworkers using vocabulary types like optional and span. I'll also summarize the C++ Core Guidelines recommendations on how to choose appropriate parameter types in function signatures to clarify meaning, mutability, and ownership, including at the call site.
Presenting these tips as part of an onboarding process should help everyone in your team contribute to a cohesive and maintainable codebase.
Vincent Zalzal is a software developer with 15 years of experience in the computer vision industry. Vincent enjoys writing efficient, modern C++ to solve all kinds of math-oriented problems, especially those involving linear algebra, geometry or statistics. He likes the low-level aspects of optimizing memory access patterns as much as the high-level challenges of writing simple and maintainable code. He has an insatiable curiosity for learning about language features, programming idioms, good practices and random math facts.