• henfredemars@infosec.pub
    link
    fedilink
    English
    arrow-up
    41
    ·
    7 hours ago

    Ah, C++. An endless supply of footguns where the difference between a junior and a senior dev is knowing what parts of the language to never use.

      • henfredemars@infosec.pub
        link
        fedilink
        English
        arrow-up
        5
        ·
        2 hours ago

        You can also make everything a smart pointer and be done with it.

        I can count on more than one hand the number of large scale projects were converting everything to smart pointers fixed major memory issues. Even if smart pointers can’t handle circular references, the number of projects that just don’t manage their memory correctly at all and we’re fixed by introducing these tools is way too high.

        • CanadaPlus@lemmy.sdf.org
          link
          fedilink
          arrow-up
          1
          ·
          33 minutes ago

          Which kind of smart pointer, with which kind of footgun? I mean, it’s better than not even trying I guess, but if it was actually a full solution you’d just have Rust.