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

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 พ.ย. 2024

ความคิดเห็น • 18

  • @jhbonarius
    @jhbonarius 9 หลายเดือนก่อน +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 9 หลายเดือนก่อน +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 9 หลายเดือนก่อน +3

      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 9 หลายเดือนก่อน

      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 9 หลายเดือนก่อน

      ​@@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|

  • @anon_y_mousse
    @anon_y_mousse 9 หลายเดือนก่อน +3

    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 9 หลายเดือนก่อน

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

    • @anon_y_mousse
      @anon_y_mousse 9 หลายเดือนก่อน

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

    • @GeorgeTsiros
      @GeorgeTsiros 9 หลายเดือนก่อน

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

    • @cppweekly
      @cppweekly  8 หลายเดือนก่อน +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 8 หลายเดือนก่อน

      @@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.

  • @GameBacardi
    @GameBacardi 9 หลายเดือนก่อน

    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 9 หลายเดือนก่อน +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 9 หลายเดือนก่อน +4

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

  • @mbczxaydbzrkmszj
    @mbczxaydbzrkmszj 9 หลายเดือนก่อน

    Where can one find the source code?

    • @cppweekly
      @cppweekly  8 หลายเดือนก่อน +1

      github.com/cpp-best-practices/infiz

    • @mbczxaydbzrkmszj
      @mbczxaydbzrkmszj 8 หลายเดือนก่อน

      @@cppweeklyThank you so much!

  • @GeorgeTsiros
    @GeorgeTsiros 9 หลายเดือนก่อน

    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 🤮