CppCon 2018: John Woolverton “Interfaces Matter”

  Рет қаралды 6,277

CppCon

CppCon

Күн бұрын

Пікірлер: 2
@seditt5146
@seditt5146 5 жыл бұрын
27:30 The part about tracking lifetimes. Idk why people act like it is so hard to track the lifetime of an Object. I get that is not totally what the speaker is referencing but so many others I talk to do to extreme levels. People these days seem to be under the assumption that Raw ptr for instance is a Memory leak in itself, like you are just allocating memory and pissing it away . You have to use Smart pointers or terrible things will happen yet rarely if ever do I EVER have memory leaks in my code and when I do they are detected almost immediately. If it is your code base there is zero excuse for not tracking object lifetime and leaking memory because RAII and custom object destructors makes that process about as simple as it comes. If it is someone else's code base such as for instance a large company like Googles code base that has age you should still be capable of tracking your objects lifetime with ease. Idk, just a little rant I guess. It's just a topic that bugs me because the overhead and shear ugliness of code from smart pointers is really not worth it. Objects that are in a "Global" scope as in part of the main application and not in an object as a Member variable somewhere could benefit from smart pointers to use the Applications exit as a clean up however one should never need to use smart pointers in most other places as the overhead they require is unneeded. There is indeed overhead despite the fact that almost everyone pushing them wants to suggest there is none.
@gtdcoder
@gtdcoder 4 жыл бұрын
Most people start off today with garbage-collected languages. They never learn to appreciate how useful RAII is. Most are not even aware of it. And they never even consider avoiding allocations in the first place.
CppCon 2018: Jason Turner “Applied Best Practices”
1:03:19
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН
CppCon 2018: Andrei Alexandrescu “Expect the expected”
58:58
CppCon 2018: Richard Powell “How to Argue(ment)"
54:10
CppCon
Рет қаралды 12 М.
CppCon 2018: Simon Brand “How C++ Debuggers Work”
1:01:00