Тёмный

Typical C++, But Why? - Björn Fahller - Meeting C++ 2023 

Meeting Cpp
Подписаться 31 тыс.
Просмотров 3 тыс.
50% 1

Typical C++, But Why? - Björn Fahller - Meeting C++ 2023
Slides: slides.meetingcpp.com
Survey: survey.meetingcpp.com
The C++ type system is both very weak and very strong. In this presentation I will show you how using the strengths of the type system makes your code better. I will show you how types...
prevents incorrect code from compiling
improves readability of code
reduces the risks when changing code
and I will show you how very simple changes to your code will take you far in the desired direction.

Наука

Опубликовано:

 

25 янв 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 6   
@martinlicht7132
@martinlicht7132 6 месяцев назад
The example on Slide 15 just shows the dangers of the implicit conversions introduced in C and adopted in C++. While it allows for very "concise" writing, ths s nt vr rdbl jst lk lvng t vwls in wrtng. Modern compilers should introduce flags optional warning about such accidental conversions even if they are perfectly valid C/C++.
@Carewolf
@Carewolf 6 месяцев назад
We might need an explicit "implicit" marker then.
@Carewolf
@Carewolf 6 месяцев назад
We do have compiler warnings for implicit casts from bool to int.
@varshneydevansh
@varshneydevansh 6 месяцев назад
noice
@nyyakko
@nyyakko 6 месяцев назад
@ 25:05 I'd argue even more, you **should** keep it very minimal. Restrain yourself and prefer to declare only the minimal set of functions that is needed to make your class actually do the job it is intended to do. Tony Eard actually has a pretty good talk on this which goes more in depth, its a talk about the somewhat controversial SOLID principles. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-glYq-dvgby4.html
@nyyakko
@nyyakko 6 месяцев назад
anyways, very great talk! it was fun to watch.
Далее
Async Engine in C
3:12:16
Просмотров 49 тыс.
Conan Package Manager for C++ in Practice
1:00:01
Просмотров 7 тыс.
Проверил, как вам?
0:58
Просмотров 15 тыс.
ЗАБЫТЫЙ IPHONE 😳
0:31
Просмотров 20 тыс.