Mine is that the useState hook is an actual plague on the entire React ecosystem. Regardless of your opinions of React, if you wanna use something then use it right.

  • onlinepersona@programming.dev
    link
    fedilink
    arrow-up
    2
    arrow-down
    2
    ·
    3 hours ago

    Agree with half of that. C++ is last century stuff and should be replaced. Any new code in C and C++ is immediately a vulnerability.

    • ducktumn@lemmy.zip
      link
      fedilink
      arrow-up
      8
      ·
      3 hours ago

      Atleast C is easy to understand which makes it easier to find and fix vulnerabilities. C++ feels like it’s duct tape holding it together.

      • onlinepersona@programming.dev
        link
        fedilink
        arrow-up
        2
        arrow-down
        2
        ·
        3 hours ago

        C is easy to understand and find vulns? AI is uncovering decades of vulns in C code that humans hadn’t seen since the code’s inception. And they aren’t logic errors but memory management errors. Not a single day goes by without a CVE in a C/C++ project about memory management.

        Both languages are walking vulnerabilities.