YoVDO

When Should You Give Two Things the Same Name

Offered By: CppNow via YouTube

Tags

C++Now Courses C++ Courses

Course Description

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

Related Courses

Computer Graphics
University of California, San Diego via edX
Intro to Parallel Programming
Nvidia via Udacity
Initiation à la programmation (en C++)
École Polytechnique Fédérale de Lausanne via Coursera
C++ For C Programmers, Part A
University of California, Santa Cruz via Coursera
Introduction à la programmation orientée objet (en C++)
École Polytechnique Fédérale de Lausanne via Coursera