• themoken@startrek.website
    link
    fedilink
    English
    arrow-up
    9
    ·
    3 hours ago

    C++ has become more and more unhinged as it tries to warp itself into a language with every possible feature. I was forced to get up to date with C++20 at work for awhile and it’s miserable.

    The article mentions how much C++ runs modern software, and I won’t argue that point, but I really wonder how many of those key pieces of software, browsers, game engines, web servers etc. are still basically C++03 codebases.

    • HaraldvonBlauzahn@feddit.orgOP
      link
      fedilink
      English
      arrow-up
      4
      ·
      3 hours ago

      I was forced to get up to date with C++20 at work for awhile and it’s miserable.

      Wait, are there companies where actually using most new features is required ?

      I could imagine that to work only if the org defines a subset of the language which people should adhere to. Like Google did.

      • themoken@startrek.website
        link
        fedilink
        English
        arrow-up
        3
        ·
        3 hours ago

        I am a firmware level guy, so my work is in C/assembly, but for a while I was tasked with enabling a new framework to run some of our low level diags. Most of that work was in a Linux kernel module (still C obviously) but I also had to do the higher level interface and, yeah, the people that started the new framework did it in C++17 and then 20 by the time I got involved.

        I don’t think there was a subset per se, but like any biggish codebase there were idiomatic ways of doing everything.

        Ironically, the new framework is now almost 10 years old and the framework it was meant to replace (which is dogshit C++03) is still puttering around with a skeleton crew of maintainers.

    • CoconutLove@lemmy.today
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 hours ago

      First language I learned was C++. It was tough, but I thought that was how programming had to be. Then I learned a few other languages and later watched a video about how needlessly insane C++ is. I now accept that it’s overly complex, unintuitive, and offers too many ways to do the same thing.

  • keimevo@lemmy.world
    link
    fedilink
    English
    arrow-up
    7
    ·
    5 hours ago

    Just one new language feature needs 300 pages of documentation and even then it’s ambiguous and incomplete? Thank god I stopped using C++ 20 years ago.

  • flamingo_pinyata@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    6
    arrow-down
    2
    ·
    10 hours ago

    An inert burocratic governing body, vs pushy people with half-baked features. Unstoppable force vs immovable object