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.

  • ThirdConsul@lemmy.zip
    link
    fedilink
    arrow-up
    5
    ·
    5 hours ago

    Could you define what you mean by functional and ooo in practice, because to many people in pracitce functionsl is a garbage monad wrapper over anything with unreadable, undebugable code whose only purpose is to hide if else statements… and it doesn’t even do that; while ooo is java factory of factoties mixed with aspect programming and 20 levels of inheritance.

    • wewbull@feddit.uk
      link
      fedilink
      English
      arrow-up
      2
      ·
      3 hours ago

      Not Op but…

      OO languages have classes with inheritance based polymorphism. I don’t see struts + methods as enough to qualify.

      Functional languages have functions which can take functions as arguments and function composition as first class features.