• xmunk@sh.itjust.works
    link
    fedilink
    arrow-up
    45
    ·
    8 months ago

    C++ the good parts exclusively uses on stack allocation and passing by const reference without ever introducing pointers.

    You know this to be true.

      • Dudewitbow@lemmy.zip
        link
        fedilink
        arrow-up
        12
        arrow-down
        1
        ·
        8 months ago

        Because its essential for application use where memory management becomes extremely vital, usually due to the rom or memory to be extremely linited in size. Worrying about memory management (something C++ makes mandatory) is something not all programmers need to care about, but having automated memory mangement is also what causes bloat that comes with modern applications, due to bad programming practices of not caring about it.

    • marcos@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      8 months ago

      Only integral unsigned numbers, no reference taking at all, no side-effect operators…

  • Duralf@lemmy.world
    link
    fedilink
    arrow-up
    17
    ·
    8 months ago

    The problem is everyone disagrees on what part of C++ is good… Some like C+classes. Some like intense meta programming and some like functional programming and all are valid C++ that people advocate for.

  • Potatos_are_not_friends@lemmy.world
    link
    fedilink
    arrow-up
    8
    arrow-down
    1
    ·
    8 months ago

    This is for any subject.

    There’s a LOT of things that you don’t need to know. Take for example, cooking. To get good, you don’t need to know how fancy tricks. You just need to know the basics very well.

    But after being experienced, it’s valuable to know the other 95%. Those weird edge cases.

    • grue@lemmy.world
      link
      fedilink
      English
      arrow-up
      6
      ·
      8 months ago

      There’s a difference: in this case it’s not about omitting fancy tricks you don’t need to know until you become an expert; it’s about omitting ill-considered features that should never have existed to begin with (or, at best, features that made sense at some point in the past but don’t anymore) and that nobody should ever use again no matter how expert they get.