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.

    • noahm@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      6 days ago

      Specifically I hate it as a prefix. It’s even worse when else clauses become involved!

      x = "this is great"
      y = "this is awful"
      z = false
      
      unless(z)
        puts(y)
      else
        puts(x)
      end
      
        • noahm@lemmy.world
          link
          fedilink
          English
          arrow-up
          1
          ·
          edit-2
          2 days ago

          yes, and? Having to translate unless to if not is basically exactly why I hate it. Just write if not