C++ Best Practices for Developers
Offered By: LinkedIn Learning
Course Description
Overview
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
- New C++ features
- Old code compatibility
- File naming conventions
- Turning on modern C++
- Let the compiler help
- Static analyzers
- Cppcheck
- Challenge: Finding issues with Cppcheck
- Solution: Finding issues with Cppcheck
- 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
- 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
- Which pointer when?
- The rules of zero and three
- const is your friend
- Resource Acquisition Is Initialization (RAII)
- Challenge: RAII
- Solution: RAII
- Next steps
Taught by
Troy Miles
Related Courses
3D Art and Audio PipelineUnity via Coursera 3D Interactions and Navigation
Unity via Coursera ABC du langage C
Institut Mines-Télécom via France Université Numerique Abstraction, Problem Decomposition, and Functions
University of Colorado System via Coursera Add Gore to Your Game in Unity
Coursera Project Network via Coursera