3 ms·
>Which are...? What is a smart pointer? Or if I'm sadistic, whats the difference between unique_ptr and shared_ptr? To me, smart pointers are one of the tells
by nemothekid 3y ago
>Which are...?
What is a smart pointer? Or if I'm sadistic, whats the difference between unique_ptr and shared_ptr? To me, smart pointers are one of the tells that you are actually writing C++, and not just C with classes.
That said, testing syntax is generally awful and I only use to gauge someone's familiarity with the language (same with Go, I'll say what is a goroutine, but Go is easy enough to learn that it wouldn't factor into my decision unless the candidate was brazenly lying about past experience).
- Longhanks 3y agoUnderstanding the difference between single ownership and shared ownership is being _sadistic_? > To me, smart pointers are one of the tells that you are actually writing C++, and not just C with classes. To me, shared_ptr is one of the tells that you should be writing Go or something like that, and not just C++ with reference counting.
- nemothekid 3y ago>is being _sadistic_ It's moreso I've had so many interviews crash on this question that I've started to feel bad for asking it (and starting to assume that, no they don't know C++). Most of these jobs we didn't even use C++, it was just identifying C++ engineers was usually a very strong signal, especially because we were early adopters into Rust.