• Sickos [they/them, it/its]@hexbear.net
    link
    fedilink
    English
    arrow-up
    4
    ·
    10 months ago

    These have kind of been the bane of my existence. I’m an old C programmer who luckily stumbled into a primarily C++ role after being stuck doing web frontend for way too long, but the language we’re using is not the language I once learned and it’s hard to teach an old dog new tricks. I hope the younger guys don’t get fed up with correcting my screw ups in code reviews. Like, during an interview question I was asked “why didn’t you use smart pointers instead of manually allocating memory?” And I just had to go “C++ has smart pointers now?”

    I feel like such a dinosaur. Maybe I should just go find a COBOL maintenance job.

    • lysdexic@programming.devOPM
      link
      fedilink
      English
      arrow-up
      5
      ·
      edit-2
      10 months ago

      Smart pointers were introduced over a decade ago, and since their introduction there were already four updates to the C++ standard. There is really no excuse to shy away from smart pointers at this point. I really recommend you get up to speed on them.