RUVIDEO
Поделитесь видео 🙏

C++ RULE #0: Never Leak Exceptions from a C++ Constructor (All Bullshit)

Full Script:
https://docs.google.com/document/d/1rwcQgRUR6cHJTeAHI4fC2mlAR656In-KIz6_sSrZgTw/edit?usp=sharing

If unavoidable, crash your program asap.

If we cannot avoid exceptions from C++ constructors, then we have to learn its consequences and how to cope with them, instead of killing the process of our application itself.

"Death is so final, we cannot even have a chance to fix our past mistakes." Since exceptions are unavoidable in real life as well as in C++ programming, the best policy is to make ourselves prepared for them.

Sadly, all I have told you up to this point is just "bullshit, or dog shit, or chicken shit." This is what they, C++ tutors, teachers, or even professors teach you.

What if you are developing an application for a banking transaction, Or a self-driving car or driverless car? If your application crashes because of that noexcept keyword in the constructor specification such that your application cannot even have a chance to recover from such an exceptional situation, then your application causes immense damages to your bank, or even kill the passengers of the car that uses your application?

If the C++ Standard class uses noexcept keyword in the constructor, and you inadvertently used that class in your code without your notice, the fate of your application is destined to crash when an exceptional a situation occurs, the result of which is unimaginable damages to your bank, or can even put the passengers of the car that runs relying on your application to maximum danger, the driverless vehicle goes wild without its driver.

Hotteok: https://en.wikipedia.org/wiki/Hotteok
호떡 만들기: https://youtu.be/lSgDZfGPz8M?t=468

I have 4 hotteoks, and I am all alone.
So, I divide 4 hotteoks by one, then
I can have 4 hotteoks all by myself.

Now, suppose you have 4 pizza, and you want to share them
with others, because you are kind and friendly.

How are you going to divide them for your friends without remainder? The remainder is waste. Since I am the ONE(1) who has the authority that can divide anything without remainder, and I do not make any remainder when it comes to division.

You cannot divide 4 pizza by yourself, because I am not there with you, so you have to ask me for help. If you ever try to divide 4 by yourself, then you have to divide 4 by zero. Why zero? As I said, I am not there with you, so you have to divide 4 pizza by zero. As you may have learned at school, "Division By Zero" is strictly prohibited.

Since I am the ONE(1), I can divide anything without remainder.
If you are fair and even, whenever you try to divide odd numbers,
you will end up with the remainder. Because you are EVEN.

If you are weird person, or they call you are odd, you still cannot divide even numbers without a remainder. Because if you try to divide even numbers since you odd, you will have remainder again.

Since I am the ONE who can divide anything without remainder, I can help you divide anything fairly without any remainder.

If you have anything to share or divide, then THROW it over to me such that I can help you divide fairly without any remainder.

"Throwing" faculty of any person or people is inherent human traits.

C++ Standard Committee recognized this feature at an early stage and implemented it into C++ language. As you can throw anything over to me to help you divide them fairly, C++ functions can throw anything any time anywhere.

You can read more about noexcept by clicking this link:
https://en.cppreference.com/w/cpp/language/noexcept_spec

Or, you can watch my previous videos about the keyword noexcept:

How to Use Keyword noexcept 1
https://www.youtube.com/watch?v=txwv5TUMq8o&list=PL1_C6uWTeBDExx6nU2PbuxBVW3LH0TNcN&index=47

Windows API 13 - How to use noexcept properly in C++ programming
https://www.youtube.com/watch?v=rrlkHoAXjzU&list=PL1_C6uWTeBDFqJ202RfFMWyWepECI9l11&index=13

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «C++ RULE #0: Never Leak Exceptions from a C++ Constructor (All Bullshit)», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.