4 ms·
I'm surprised that they don't go too much into good practice and style; these are heavily enforced in Google's code-bases. I would expect to see things like ref
by robbrit 9y ago
I'm surprised that they don't go too much into good practice and style; these are heavily enforced in Google's code-bases. I would expect to see things like references and smart pointers, raw pointers are typically avoided as much as possible to avoid all the fun problems that come along with them.
- jgh 9y agoSure but naked pointers and manually managing allocation and deallocation force you to learn about how memory works in C++! Abstracting that stuff away is great for safety, but maybe less great for learning fundamentals.