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
    7
    ·
    2 days 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
      17
      ·
      2 days 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
        7
        ·
        2 days 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.

    • tomjuggler@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      1 day ago

      Embedded programmer here: C/C++ is not going away any time soon. Rust just isn’t ready yet (on microcontrollers anyway)