C++ Weekly - Ep 416 - Moving From C++11 to C++14

Поділитися
Вставка
  • Опубліковано 18 лют 2024
  • ☟☟ Awesome T-Shirts! Sponsors! Books! ☟☟
    Upcoming Workshop: Understanding Object Lifetime, C++ On Sea, July 2, 2024
    ► cpponsea.uk/2024/sessions/und...
    Upcoming Workshop: C++ Best Practices, NDC TechTown, Sept 9-10, 2024
    ► ndctechtown.com/workshops/c-b...
    Wondering how the C++ ecosystem is doing in 2023?
    C++20 is the base dialect.
    Python is the number one companion to C++.
    The C++ toolset has remained stable in recent years.
    Clang-based tools are growing in adoption.
    Discover more JetBrains Developer Ecosystem results: jb.gg/deveco_cpp23
    Use `CppWeeklyCLion` to get 25% OFF when you purchase a new CLion subscription or renew your existing one.
    Episode details: github.com/lefticus/cpp_weekl...
    T-SHIRTS AVAILABLE!
    ► The best C++ T-Shirts anywhere! my-store-d16a2f.creator-sprin...
    WANT MORE JASON?
    ► My Training Classes: emptycrate.com/training.html
    ► Follow me on twitter: / lefticus
    SUPPORT THE CHANNEL
    ► Patreon: / lefticus
    ► Github Sponsors: github.com/sponsors/lefticus
    ► Paypal Donation: www.paypal.com/donate/?hosted...
    GET INVOLVED
    ► Video Idea List: github.com/lefticus/cpp_weekl...
    JASON'S BOOKS
    ► C++23 Best Practices
    Leanpub Ebook: leanpub.com/cpp23_best_practi...
    ► C++ Best Practices
    Amazon Paperback: amzn.to/3wpAU3Z
    Leanpub Ebook: leanpub.com/cppbestpractices
    JASON'S PUZZLE BOOKS
    ► Object Lifetime Puzzlers Book 1
    Amazon Paperback: amzn.to/3g6Ervj
    Leanpub Ebook: leanpub.com/objectlifetimepuz...
    ► Object Lifetime Puzzlers Book 2
    Amazon Paperback: amzn.to/3whdUDU
    Leanpub Ebook: leanpub.com/objectlifetimepuz...
    ► Object Lifetime Puzzlers Book 3
    Leanpub Ebook: leanpub.com/objectlifetimepuz...
    ► Copy and Reference Puzzlers Book 1
    Amazon Paperback: amzn.to/3g7ZVb9
    Leanpub Ebook: leanpub.com/copyandreferencep...
    ► Copy and Reference Puzzlers Book 2
    Amazon Paperback: amzn.to/3X1LOIx
    Leanpub Ebook: leanpub.com/copyandreferencep...
    ► Copy and Reference Puzzlers Book 3
    Leanpub Ebook: leanpub.com/copyandreferencep...
    ► OpCode Puzzlers Book 1
    Amazon Paperback: amzn.to/3KCNJg6
    Leanpub Ebook: leanpub.com/opcodepuzzlers_book1
    RECOMMENDED BOOKS
    ► Bjarne Stroustrup's A Tour of C++ (now with C++20/23!): amzn.to/3X4Wypr
    AWESOME PROJECTS
    ► The C++ Starter Project - Gets you started with Best Practices Quickly - github.com/cpp-best-practices...
    ► C++ Best Practices Forkable Coding Standards - github.com/cpp-best-practices...
    O'Reilly VIDEOS
    ► Inheritance and Polymorphism in C++ - www.oreilly.com/library/view/...
    ► Learning C++ Best Practices - www.oreilly.com/library/view/...
  • Наука та технологія

КОМЕНТАРІ • 18

  • @jhbonarius
    @jhbonarius 3 місяці тому +13

    It's sad that moving from a 13 year old version of the language to a 10 year old version is still a hurdle for many companies....

    • @jaybee9054
      @jaybee9054 3 місяці тому +2

      Dude, *I'm* the company and at times I'm too scared to change/modernize my stuff and risk introducing regression bugs...🤐

    • @Nobody1707
      @Nobody1707 3 місяці тому +2

      You think that's bad? I saw people complaining that C23 removed K&R functions, and those have been deprecated since the original C89 standard. If thirty-four years isn't enough time to remove a deprecated feature, then there never will be enough time for it.

    • @GeorgeTsiros
      @GeorgeTsiros 3 місяці тому

      if you are in the field of "has to work, _guaranteed_ " and you _need_ a chain of _verified correct_ software, guess what: you go back to a subset of C99 (subset because a few things are missing). There is no verified C++ compiler. I mean... okay, _technically_ if you make a C++-to-C compiler, you're ok?

    • @GeorgeTsiros
      @GeorgeTsiros 3 місяці тому

      ​@@Nobody1707when is it easier to remove mould? A few days after it appears, or a few decades after it appears? People make the mistake thinking that giving others _a lot of time_ is a good idea. No. It is a very, _very_ bad idea. You give them the least time possible. Consider Apple. Much as I hate them, they transitioned from powerpc to intel to arm in _less than two decades_ . Meanwhile, AMD64 has been around for just as long and yet _we're still carrying along the ball and chain that is x86_ . FFFFFFFFFF x|

  • @GameBacardi
    @GameBacardi 3 місяці тому

    Is there simple examples (for dummies), how you can compile others github project?
    Or is difficulty that, project have not build using Visual Studio at all...

    • @basilefff
      @basilefff 3 місяці тому +4

      Well, depending on the project, it's going to use different build system, so you will have to be more specific

    • @not_ever
      @not_ever 3 місяці тому +4

      If people want you to build their project they should provide a readme with instructions.

  • @anon_y_mousse
    @anon_y_mousse 3 місяці тому +2

    Am I the only one that hates trailing return types? I get that some people think the few tiny examples where the standard restricts you and tries to claim that's the only way to solve the issue are somehow worth the annoyance, but that's just a failure of compiler authors and their negative influence on the committee. I'm really starting to feel like every good decision they made was countered with two bad ones. And I'm sure someone will claim the opposite method is annoying, like having enclosing class inference on the return type is impossible if the compiler has to look forward to the function name and its resolved namespace, but I've not found that to be an issue at all in my own compiler.

    • @GeorgeTsiros
      @GeorgeTsiros 3 місяці тому

      ... what do you mean "in my own compiler"? You sound scary

    • @anon_y_mousse
      @anon_y_mousse 3 місяці тому

      @@GeorgeTsiros It's scary to write your own compiler?

    • @GeorgeTsiros
      @GeorgeTsiros 3 місяці тому

      @@anon_y_moussefor c++? YES, YES IT IS.

    • @cppweekly
      @cppweekly  2 місяці тому +1

      For me it's very pragmatic.
      By the time I have [[nodiscard]] constexpr blah blah blah, the return type gets lost, so I move it to the end of the function declaration.

    • @anon_y_mousse
      @anon_y_mousse 2 місяці тому

      @@cppweekly That at least makes some semblance of sense. But I would just do away with a lot of the attributes too. Most of those keywords are just about optimization hints anyway, and I remain unconvinced that the compiler needs help in most of those cases.

  • @mbczxaydbzrkmszj
    @mbczxaydbzrkmszj 3 місяці тому

    Where can one find the source code?

    • @cppweekly
      @cppweekly  2 місяці тому +1

      github.com/cpp-best-practices/infiz

    • @mbczxaydbzrkmszj
      @mbczxaydbzrkmszj 2 місяці тому

      @@cppweeklyThank you so much!

  • @GeorgeTsiros
    @GeorgeTsiros 3 місяці тому

    p*thon, because there weren't enough scripting languages out there and most importantly, there was no scripting language out there that could be considered downright disastrous 🤮