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
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
CppCon 2018: Jason Turner “Surprises in Object Lifetime”
1:01:28
CppCon 2018: Richard Powell “How to Argue(ment)"
54:10
CppCon
Рет қаралды 12 М.
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН