3 ms·
But there is! Use local variables and value semantics. Use references to borrow stuff. Never touch new or delete. Use smart pointers when need an owning pointer
by soinus 4y ago
But there is! Use local variables and value semantics. Use references to borrow stuff. Never touch new or delete. Use smart pointers when need an owning pointer (rare). Anything beyond that: ask next in seniority to supervise. That should be enough to live a happy C++ life for a junior.
- gridspy 4y agoAh, I think the parent was referring to C++ circa 1990 to 2010 - prior to the much more happy modern world with standard smart pointers.