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

LinkedIn Learning

C++ Best Practices for Developers

via LinkedIn Learning

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Learn best practices that can help you produce higher-quality C++ code. Learn how to leverage several helpful tools and new features in C++.

Syllabus

Introduction
  • Write better C++ code
  • What you should know
1. What Is Modern C++?
  • New C++ features
  • Old code compatibility
  • File naming conventions
2. Tools That Improve Your Code
  • Turning on modern C++
  • Let the compiler help
  • Static analyzers
  • Cppcheck
  • Challenge: Finding issues with Cppcheck
  • Solution: Finding issues with Cppcheck
3. Using the New Features Correctly
  • Auto type deduction and initialization
  • Range-based for loops
  • Strongly typed enums
  • Using lambdas
  • The magic of variadic template functions
  • Challenge: Writing an integer sum method
  • Solution: Writing an integer sum method
4. Don't Reinvent the Wheel
  • How C++ and the STL name things
  • Map, filter, and reduce
  • Be careful with string_view
  • size_t and auto
  • The filesystem library
  • Challenge: Writing strings to a file
  • Solution: Writing strings to a file
5. Managing Objects
  • Which pointer when?
  • The rules of zero and three
  • const is your friend
  • Resource Acquisition Is Initialization (RAII)
  • Challenge: RAII
  • Solution: RAII
Conclusion
  • Next steps

Taught by

Troy Miles

Reviews

4.6 rating at LinkedIn Learning based on 253 ratings

Start your review of C++ Best Practices for Developers

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.