• mindbleach@sh.itjust.works
    link
    fedilink
    arrow-up
    2
    ·
    11 months ago

    The C++ feature set is a giant tome written in an unsteady hand and bound with suspicious leather. You’re supposed to study it deeply, use as little as possible, and ideally have a backup plan if things go wrong for this plane of existence.

  • hark@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    11 months ago

    The graph goes up for me when I find my comfortable little subset of C++ but goes back down when I encounter other people’s comfortable little subset of C++ or when I find/remember another footgun I didn’t know/forgot about.

    • henfredemars@infosec.pub
      link
      fedilink
      English
      arrow-up
      1
      ·
      11 months ago

      When I became a team leader at my last job, my first priority was making a list of parts of the language we must never use because of our high reliability requirement.

    • LANIK2000@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      11 months ago

      That’s one thing that always shocks me. You can have two people writing C++ and have them both not understand what the other is writing. C++ has soo many random and contradictory design patterns, that two people can literally use it as if it were 2 separate languages.

  • xmunk@sh.itjust.works
    link
    fedilink
    arrow-up
    1
    ·
    11 months ago

    This graph cuts off early. Once you learn that pointers are a trap for noobs that you should avoid outside really specific circumstances the line crosses zero and goes back into normal land.

  • nothacking@discuss.tchncs.de
    link
    fedilink
    arrow-up
    1
    ·
    11 months ago

    Hot take, C is better then C++. It really just has one unique footgun, pointers, which can be avoided most of the time. C++ has lots of (smart)pointer related footguns, each with their own rules.

  • TangledHyphae@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    11 months ago

    As someone who writes C++ every day for work, up to version C++20 now, I hate the incoming C++23 even more somehow. The idea of concepts, it just… gets worse and worse. Although structured binding in C++17 did actually help some with the syntax, to be fair.