Relative Content

Tag Archive for sdlc

How to convey lifetime requirements?

Usually I use std::unique_ptr to convey ownership and pass in raw pointers as parameters when no ownership is implied. However, I almost never consider a nullptr to be acceptable as an argument, so it would be nice to use references to avoid this, but I’m not sure most people would expect that the object the parameter references needs to exist for the lifetime of the struct A without looking at the source code.

How to convey lifetime requirements?

Usually I use std::unique_ptr to convey ownership and pass in raw pointers as parameters when no ownership is implied. However, I almost never consider a nullptr to be acceptable as an argument, so it would be nice to use references to avoid this, but I’m not sure most people would expect that the object the parameter references needs to exist for the lifetime of the struct A without looking at the source code.

Previous programmer died unexpectedly; how do I pick up where he left off? [duplicate]

This question already has answers here: What is the way to understand someone else’s giant uncommented spaghetti code? [duplicate] (9 answers) Closed 10 years ago. I have recently taken a job finishing the development of a .Net application. The delivery of the application is two years behind schedule. The previous developer died before I had […]