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.

  • abc@suppo.fi
    link
    fedilink
    arrow-up
    40
    arrow-down
    5
    ·
    1 day ago

    PHP sucks and every attempt at defending it is pathetic.

    I get warm and fuzzy feelings that people here are not even talking about it. Perhaps I should follow that trend.

    • Shanmugha@lemmy.world
      link
      fedilink
      arrow-up
      8
      arrow-down
      1
      ·
      23 hours ago

      I have no idea how anyone who ever used it for anything actually useful can be defending it

      • fibojoly@sh.itjust.works
        link
        fedilink
        arrow-up
        3
        ·
        18 hours ago

        Back in the day, it let me generate GIFs programmatically from the back end, and that was fucking magic compared to doing it in C. That was in 98. I didn’t really follow afterwards as I’m more of a backend guy.

    • ThunderComplex@lemmy.today
      link
      fedilink
      arrow-up
      16
      arrow-down
      2
      ·
      1 day ago

      I am with you all the way. For a high level programming language it’s incredible how close to C it is at times AND how many footguns the entire language has.
      And you always hear the “a poor craftsman blames his tools” analogy when someone says PHP bad. But PHP is a hammer that’ll blow your arm clean off when you hit a nail at a slightly off angle.
      There is no defending it, and it should have been replaced with better languages several times over.

      Ok I need to stop myself now I can rant about this language for hours

      • Hasherm0n@lemmy.world
        link
        fedilink
        arrow-up
        10
        ·
        23 hours ago

        I saw a nice counter to the “a poor craftsman…” analogy the other day that basically boiled down to a master craftsman will have very high standards about the tools they use.

        • ThunderComplex@lemmy.today
          link
          fedilink
          English
          arrow-up
          4
          ·
          23 hours ago

          Yeah, I wholeheartedly agree with this. And it’s not only frustrating that PHP doesn’t live up to the high bar, every ““major”” update to PHP (that you graciously only get once a year) is only a small step in the right direction. They try to modernize it, buuut also try to keep it as backwards compatible as possible.

          And I think I’ve also seen a counter to the “a master craftsman will have very high standards” argument that boils down to “a master craftsman can work with any tool regardless of quality” but why can’t we have higher standards in the programming world?

    • menas@lemmy.wtf
      link
      fedilink
      arrow-up
      17
      arrow-down
      5
      ·
      1 day ago

      PHP is the best web language, not because it’s a good language, but because the other are worst