3 ms·
I agree completely. And honestly, it looks like the presenter is trying to brag about their knowledge of obscure C and C++ quirks through the voice of candidate
by Cyph0n 9y ago
I agree completely. And honestly, it looks like the presenter is trying to brag about their knowledge of obscure C and C++ quirks through the voice of candidate #2.
- jchw 9y agoThere is no doubt these slides wreak of humble bragging and maybe even a bit of shaming, which isn't a good look. Obviously, there are important properties to programmers other than knowing obscure stuff. That being said... It's still solid and I think the slides have many, many important points, both for developer attitudes and things to know about C and C++. A lot of these obscure quirks can hit you hard if you're not paying enough attention. The order of initializer lists is extremely painful and hits me every so often even though I would probably catch it in an interview. If anyone takes anything away from this w.r.t. C and C++, I'd say the best thing would just be to always code with `-Werror -Weffc++ -Wall ...`
- klodolph 9y agoHold off on the -Weffc++, it is known for false positives. It is based on a set of guidelines for C++ that appear in Scott Meyer's book (first edition!), but these guidelines are routinely violated in well-written code. For example, it warns for any base class having a non-virtual destructor, warns if any member is missing from an initialization list, etc. Some of the advice is inappropriate for modern (C++11) code.