No video

When C++ Style Guides Contradict - Nicolai Josuttis - CppCon 2019

  Рет қаралды 25,004

CppCon

CppCon

Күн бұрын

Пікірлер: 19
@BlackBeltMonkeySong
@BlackBeltMonkeySong 4 жыл бұрын
Great talk. I'm more and more interested in style these days, and tools that enforce style.
@syntaxed2
@syntaxed2 2 жыл бұрын
RUST is yer friend!
@andy.1331
@andy.1331 4 жыл бұрын
The reason for using any extension for C++ header files is very simple: most tasks (>99%) of building systems don't depend on header files extensions: they care of _source_ files extensions to find out how to _compile_ them (i.e. C or C++).
@mapron1
@mapron1 4 жыл бұрын
I fully agree with you. We use #include "utils.png" in our project and we just fine :)
@bobbymah2682
@bobbymah2682 4 жыл бұрын
Great pragmatic talk as always! Please write your own style guide book ;)
@ShalomCraimer
@ShalomCraimer 4 жыл бұрын
There was a discussion of the "virtual" + "final" guidelines here: github.com/isocpp/CppCoreGuidelines/issues/1271#issuecomment-421990940 and Nicolai is correct that the guideline is not 100% correct, it was simply decided that trying to catch all the cases was more complicated than just keeping a simpler rule.
@Fetrovsky
@Fetrovsky 2 жыл бұрын
I find it funny that -Wall doesn't turn on _all_ warnings.
@TheOnlyAndreySotnikov
@TheOnlyAndreySotnikov 2 жыл бұрын
13:01 In my 20+ years of career and C++ experience, I never had a problem with header files having ".h" extension.
@andy.1331
@andy.1331 4 жыл бұрын
Nicolai, just don't use keyword "final" for methods which can't be hidden by derived class. Try to find another keyword because keyword "final" is reserved for derivation purposes and share your idea with us and standardization comity to discuss.
@ABaumstumpf
@ABaumstumpf 3 жыл бұрын
Override - last week found a bug in production-code that has been around for > 3 years and was not discovered - cause while that feature was officially supported it seems nobody ever used it. A derived class tried to override a function but did not use 'override' but had an extra const.......
@Fetrovsky
@Fetrovsky 2 жыл бұрын
We should reconsider adding automatic virtual destructor to a class that has at least pure virtual methods. Not sure if non-pure virtual methods.
@Fetrovsky
@Fetrovsky 2 жыл бұрын
I like .c++ for implementation files and .h for header files.
@Vermilicious
@Vermilicious 3 жыл бұрын
In short: C++ is a mess. One of the biggest gripes I have with the language is all the implicit stuff. I think if everything had to be explicitly declared, a lot of problems would go away completely. If you write something, it should mean one thing, and one thing only.
@gyaseddintanrkulu
@gyaseddintanrkulu 2 жыл бұрын
Agreed!
@petros_adamopoulos
@petros_adamopoulos 4 жыл бұрын
47:47 Ecumenical C++. There are multiple paths to god.
@ujin981
@ujin981 2 жыл бұрын
7:13 "Within C++ is a smaller, simpler, safer language struggling to get out." And It's name is C.
@origamitraveler7425
@origamitraveler7425 Жыл бұрын
"C is safer" lol
Type punning in modern C++ - Timur Doumler - CppCon 2019
1:00:19
Кадр сыртындағы қызықтар | Келінжан
00:16
Magic trick 🪄😁
00:13
Andrey Grechka
Рет қаралды 45 МЛН
Doing This Instead Of Studying.. 😳
00:12
Jojo Sim
Рет қаралды 35 МЛН
Can This Bubble Save My Life? 😱
00:55
Topper Guild
Рет қаралды 70 МЛН
Back to Basics: Const as a Promise -  Dan Saks - CppCon 2019
1:01:34
Кадр сыртындағы қызықтар | Келінжан
00:16