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

Поділитися
Вставка
  • Опубліковано 28 лип 2024
  • CppCon.org
    Discussion & Comments: / cpp
    Presentation Materials: github.com/CppCon/CppCon2019
    -
    When C++ Style Guides Contradict
    C++ is a success story. One reason is its backward compatibility.
    But that also makes C++ more or more unteachable.
    Too many features, too many rules, too many inconsistences.
    So, the only solution (beside clean-ups for simple rules) are good style guides.
    However, these style guides contradict significantly.
    For example, while some recommend to define operations as non-member non-friend,
    others recommend to use hidden friends.
    Or when should we define virtual destructors?
    Or the details of the rule of 0, 3, 5, "5 or 3".
    Or how to initialize an object.
    I have no clear solution.
    But it's time to open the stage for a consolidation of the situation.
    At least in the interest of all the average programmers who do not know all the rules (well, yes, nobody does).
    -
    Nicolai Josuttis
    Nicolai Josuttis (www.josuttis.com) is an independent system architect, technical manager, author, and consultant. He designs mid-sized and large software systems for the telecommunications, traffic, finance, and manufacturing industries.
    He is well known in the programming community because he not only speaks and writes with authority (being the (co-)author of the world-wide best sellers The C++ Standard Library (www.cppstdlib.com), C++ Templates, and SOA in Practice), but is also an innovative presenter, having talked at various conferences and events.
    -
    Videos Filmed & Edited by Bash Films: www.BashFilms.com
    *-----*
    Register Now For CppCon 2022: cppcon.org/registration/
    *-----*
  • Наука та технологія

КОМЕНТАРІ • 19