Главная
Study mode:
on
1
- Hello
2
- ALWAYS stack allocate if you can
3
- The cat is back
4
- API design considerations
5
- return 0 in the main function
6
- Organization and code conventions
7
- Variable intialization
8
- Deep class hierarchies
9
- Managing states
10
- defines
11
- Avoid copying causing unnessary heap allocations
12
- More on #define
13
- Consistent code style
14
- Compilation warnings
15
- Logging and release builds
16
- struct vs class
17
- Cleaner code
18
- Final thoughts and conclusion
19
- Use std::weak_ptr
Description:
Explore common C++ coding pitfalls and best practices in this 38-minute video tutorial. Learn about efficient memory allocation, API design, code organization, variable initialization, class hierarchies, state management, preprocessor directives, and more. Discover tips for writing cleaner, more efficient C++ code, including proper use of structs vs. classes, handling compilation warnings, and leveraging std::weak_ptr. Gain insights to improve your C++ programming skills and avoid common mistakes that can lead to code failures.

Why C++ Code Failed - Common Mistakes and Best Practices

The Cherno
Add to list
0:00 / 0:00