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

YouTube

C++ Code Smells

NDC Conferences via YouTube

Overview

Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This talk uses C++ code smells to examine practices such as raw loops, casts, const usage, and ignored compiler warnings. It includes a code review example.

Syllabus

Jason Turner
C++ Best Practices
Construction Separate From Assignment - Ben Deane
Raw Loops
Multi-Step Functions Multi-step functions are hard to reason about, debug, and maintain
Non-Cannonical Operators
Code With Conversions
Casting Away const
static const
extern const
Raw new and delete
Code Smells
Let's Update This Code Sample #2
Do You const Value Parameters?
Do you const Temporary Values?
Do You const Value Return Types?
Missing and Ignored Compiler Warnings Special checks for many of these things
Missing const and constexpr, Misplaced const . Why isn't that value or member function
Weak Types And Casts Unfortunately the C++ standard Ubrary does not help us here
Bonus Code Review

Taught by

NDC Conferences

Reviews

Start your review of C++ Code Smells

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.