Great talk. I'm more and more interested in style these days, and tools that enforce style.
@syntaxed22 жыл бұрын
RUST is yer friend!
@andy.13314 жыл бұрын
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++).
@mapron14 жыл бұрын
I fully agree with you. We use #include "utils.png" in our project and we just fine :)
@bobbymah26824 жыл бұрын
Great pragmatic talk as always! Please write your own style guide book ;)
@ShalomCraimer4 жыл бұрын
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.
@Fetrovsky2 жыл бұрын
I find it funny that -Wall doesn't turn on _all_ warnings.
@TheOnlyAndreySotnikov2 жыл бұрын
13:01 In my 20+ years of career and C++ experience, I never had a problem with header files having ".h" extension.
@andy.13314 жыл бұрын
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.
@ABaumstumpf3 жыл бұрын
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.......
@Fetrovsky2 жыл бұрын
We should reconsider adding automatic virtual destructor to a class that has at least pure virtual methods. Not sure if non-pure virtual methods.
@Fetrovsky2 жыл бұрын
I like .c++ for implementation files and .h for header files.
@Vermilicious3 жыл бұрын
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.
@gyaseddintanrkulu2 жыл бұрын
Agreed!
@petros_adamopoulos4 жыл бұрын
47:47 Ecumenical C++. There are multiple paths to god.
@ujin9812 жыл бұрын
7:13 "Within C++ is a smaller, simpler, safer language struggling to get out." And It's name is C.