C++ Best Practices: RAII

  Рет қаралды 17,358

Nick

Nick

Күн бұрын

Пікірлер: 22
@collynchristopherbrenner3245
@collynchristopherbrenner3245 2 ай бұрын
Sometimrs I really just want someone to show and comment on code in real time. Bravo!
@CuriousCyclist
@CuriousCyclist 2 жыл бұрын
Thank you for taking the time to make this video. Much appreciated.
@NotesByNick
@NotesByNick 2 жыл бұрын
Glad you enjoyed the vid! :^)
@markusbuchholz3518
@markusbuchholz3518 5 жыл бұрын
Thanks Nick for again great video. You cover broad range of CS subjects. Perfect. Memory and CPU utilization are always the problem for RT applications. Great to have tools to approach system optimization. Thanks again for inspiration and your performance!
@brightontandabantu
@brightontandabantu 3 жыл бұрын
I like your video, you know! Hahaa I enjoyed those 'you knows' they kept me in the loop!
@thestarinthesky_
@thestarinthesky_ Жыл бұрын
Great video! Thank you!
@openroomxyz
@openroomxyz 2 жыл бұрын
The example with lambda very is interesting thanks!
@fdjerourou3050
@fdjerourou3050 11 күн бұрын
Bravo pour la vidéo.;)
@deborahfranza2925
@deborahfranza2925 4 жыл бұрын
Thanks for the video, what is the mutex library you included? I've never seen it before.
@NotesByNick
@NotesByNick 4 жыл бұрын
Under the hood it's just the pthread mutex on my machine - I'm just using std::mutex (available in C++11 and later standards) which makes this more portable (e.g., on windows it would use windows equivalent of a mutex instead of the pthread one). en.cppreference.com/w/cpp/thread/mutex
@santoshreddy8510
@santoshreddy8510 5 жыл бұрын
Hi! Do we have any tricks of such kind for vectors where we create the vector inside a function and return it to main function?
@NotesByNick
@NotesByNick 5 жыл бұрын
In many circumstances you will get copy elision on the return (i.e., the vector is constructed at the return address, therefore there is no copying of the vector back from the function). Does this answer your question, or did you have something else in mind?
@8Trails50
@8Trails50 2 жыл бұрын
Amazing
@HunterNX_s
@HunterNX_s 3 жыл бұрын
When my program crashes in debug mode, after a memory allocation, does that allocation continue and remain as a leak or does the IDE provide a way to automatically release it? If it continues as a leak, how could I get it released?
@RigelOrionBeta
@RigelOrionBeta Жыл бұрын
Memory is allocated to an application by the operating system. If an application crashes, all memory held by that application is freed by the operating system. Now that is what should happen. But operating systems can have bad logic, and fail to free memory upon application crashes. And operating systems themselves can have memory leaks. Since there is nothing lower level that an OS when it comes to memory management, that causes crashes like blue screens.
@raz0229
@raz0229 2 жыл бұрын
Hey Nick, Thank you for another great video. It was very concise and really easy to follow, that said, you got a new follower on GitHub ;)
@anupkodlekere3633
@anupkodlekere3633 4 жыл бұрын
Where can j find your dotfiles?
@NotesByNick
@NotesByNick 4 жыл бұрын
What dotfiles are you referring to?
@anupkodlekere3633
@anupkodlekere3633 4 жыл бұрын
@@NotesByNick preferably your .vimrc
@NotesByNick
@NotesByNick 4 жыл бұрын
Anup Kodlekere you can find some links to my setup info on my GitHub site here! coffeebeforearch.github.io .
@amortalbeing
@amortalbeing 4 жыл бұрын
You look like andre karpathy! a lot
@marianionita3282
@marianionita3282 7 ай бұрын
Great video, but the amount of "you know" and "right" is too high...
31 nooby C++ habits you need to ditch
16:18
mCoding
Рет қаралды 854 М.
C++ RAII vs Rust OBRM - Part 1
11:52
Let's Get Rusty
Рет қаралды 31 М.
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН
C++ Best Practices: Always Const
6:01
Nick
Рет қаралды 6 М.
Software Development with C++: Debugging with Valgrind
17:26
What is RAII (Resource Acquisition Is Initialization)?
17:11
pencilflip
Рет қаралды 14 М.
C++ Code Smells - Jason Turner
56:11
NDC Conferences
Рет қаралды 78 М.
Move Semantics in C++
13:10
The Cherno
Рет қаралды 309 М.
Back To Basics: C++ Containers
31:41
javidx9
Рет қаралды 192 М.
Back to Basics:  RAII in C++ - Andre Kostur - CppCon 2022
44:17
lvalues and rvalues in C++
14:13
The Cherno
Рет қаралды 331 М.
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН