• zxqwas@lemmy.world
    link
    fedilink
    arrow-up
    107
    arrow-down
    2
    ·
    2 days ago

    C++ gives you enough rope to shoot yourself in the foot. If you did not know rope could do that you should have read the manual.

    It’s like a chainsaw with all the bells and whistles but all the safety features removed. Sure you can chop wood with it really fast and probably stone too if you #include diamondteeth library, you can even hammer in nails if you #include hammer. But you are alone responsible for your safety and it’s probably not the best tool for any given job.

    • vivendi@programming.dev
      link
      fedilink
      English
      arrow-up
      18
      ·
      2 days ago

      You should also really be using the latest chainsaw model with new safety features, but your workplace swears by the gas guzzling piece of shit from 1996

      • mmddmm@lemm.ee
        link
        fedilink
        arrow-up
        4
        ·
        edit-2
        2 days ago

        The new safety features all break down under stress and make the tool as safe as the 1996 piece as soon as you put them in a dangerous environment.

        Also, both the new and the 1996 pieces have hidden explosives that were placed there by the new tooling used to build them. Nobody will tell you where they are, you should know that already. Don’t hit them.

        • AnyOldName3@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          19 hours ago

          Like a real powertool, if you unscrew the safety features because you feel they’re getting in your way, they no longer provide safety. Having the guard from a chainsaw in your back pocket does nothing to protect you from the chainsaw you’re holding.

        • vivendi@programming.dev
          link
          fedilink
          English
          arrow-up
          3
          ·
          22 hours ago

          Do they? As long as you use RAII and modern shit and keep to something like GCC, it should be safe, right?

          I don’t do C++ these days

          • mmddmm@lemm.ee
            link
            fedilink
            arrow-up
            1
            ·
            7 hours ago

            it should be safe, right?

            Are you phishing for an Anakin / Padme meme?

    • gnutrino@programming.dev
      link
      fedilink
      English
      arrow-up
      36
      ·
      2 days ago

      C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do it blows your whole leg off

      Byarne Stroustrup (original creator of c++)

    • dwemthy@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      2 days ago

      The bells and whistles would need to be pretty loud to be heard over the regular chainsaw operation noises

  • Lembot_0003@lemmy.zip
    link
    fedilink
    English
    arrow-up
    20
    arrow-down
    4
    ·
    2 days ago

    This is how Keith looks in the hands of Python “programmers”. While being cared by normal specialists, Keith looks gorgeous and healthy. And can do super cool tricks too.

    • Zip2@feddit.uk
      link
      fedilink
      arrow-up
      5
      ·
      2 days ago

      Python programmers also pump Keith full of tranquillisers and you have to indent his legs one at a time to let him walk.