Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

When Should You Give Two Things the Same Name

CppNow via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the intricacies of naming conventions in C++ programming through this comprehensive conference talk from CppNow 2021. Delve into the philosophical aspects of when and why to give two entities the same name, examining various C++ features like function overloading, virtual functions, templates, and concepts. Learn how to effectively use same-named entities with C++'s tools for manipulation, including dynamic dispatch, overload resolution, and more. Gain insights from carefully selected examples and discover the speaker's perspective on the appropriate use of same-naming in C++ development. Enhance your understanding of C++ naming practices and their impact on code design and functionality.

Syllabus

Intro
Luces Substitution Principle
fences have reason
Robert Frost
C
When to give two things the same name
Overloading should have a reason
Overloading enables static polymorphism
A real example
Swap
Counter Example
Awkward Fence
Question Break
Is this an argument against auto
Is this a hole in my argument
Example constructors
C Plus loves constructors
Temporary Ts
Statically Polymorphic
How Parameter
lambda introducer
p1170

Taught by

CppNow

Reviews

Start your review of When Should You Give Two Things the Same Name

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.