3 ms·
Most of the comments here are focused on the interviewer’s behavior. As for the code, I make it a policy to never, ever use “using namespace x” because of the p
by ryandrake 8y ago
Most of the comments here are focused on the interviewer’s behavior. As for the code, I make it a policy to never, ever use “using namespace x” because of the potential of namespace pollution/confusion. Always prefix standard library identifiers with std::
I didn’t think this was even controversial.
I also always use this-> to access members even when I don’t have to. Write things explicitly so there is no potential for confusion when someone else reads your code.