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.

    • IEatDaFeesh@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      1 hour ago

      It’s painful to learn and set up. Looking at other people’s code is horrifying. I looked at a portion of Godot code and the amount of headers defined is actually retarded. A lot of the c++ function names are a remnant of not well thought out ideas. It’s also normal to have thousands of lines of code for a small portion of a small project?? The only way I see it being used is through vibe coding. You can’t tell me it’s easier to look at someone’s C++ than their Python project.

    • iusemybrain@sh.itjust.works
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      3 hours ago

      The intention of C++ was to be C’s replacement by adding objects into the programming language while also maintaining the fast compilation and runtime that came with C. In the end it resulted in longer compilation and runtime times (from the millisecond scale to seconds scale), which made it generally unappealing for embedded systems.

      On a production code standpoint, if were comparing it to something like python, it is debatable, but there’s just a large learning curve associated with the language that could otherwise be avoided with a different OOP language. By trying to accomplish everything, it fails to implement everything well to compete with other languages.