We all get stressed... In this blog post, Noah Heldman talks about his personal experience with stress at work, and the tools he has used to significantly reduce and effectively manage it, with a focus on the benefits we get from stress (yes, you read that right), and the costs.
Reference and Pointer Parameters
A question that often arises when working with C++ is whether it's better to use references or pointers for function parameters. Both types of parameters provide the ability for a function to indirectly access an object in the calling environment. This indirect access provides several benefits:
- The object referred/pointed to by the argument does not need to be copied in order for the function to have access to that object's value
- The function can directly modify the object referred/pointed to by the argument
- The function can take parameters of types that do not allow copying