Comment by bvrmn
18 hours ago
Another book tactically missing memory and ownership design for modern c++ apps. I think there is no more important topic for teaching. There are some slides in advanced sections but it's quite ironic one needs to know about it from the start!! Who owns memory? How to pass it? Move? Borrow? How to communicate it for readers? It's like a tribal knowledge.
Every time I touch enterprise C++ codebase it's a freakshow heavily struggling with memory management.
As reference the material could be good, as study it's very questionable.
Do you have any recommendations for books/materials that do include these topics? I've never used c++ professionally, but have been starting to learn it and would appreciate a modern reference on these items.
Nothing did more damage to c++ code bases than people not understanding this. People hear "smart pointers are good" and use them for everything. Not understanding that it's just the lesser evil and still extremely rarely needed (vs just stack memory or variants)