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.

  • NoLemurs@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    منذ يوم واحد

    100% agreed, though I’m in the “neither is ideal” camp. My favorite language, by a long way at this point is Rust.

    It’s not functional, but borrows a lot of functional idioms while avoiding the pain points functional language usually hit in exchange for losing the purity of functional languages.

    • PortNull@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      2
      ·
      منذ 22 ساعة

      Nah, no language is “perfect” once you’ve used it enough I write python for money and elixir in my own time. I borrow implementation approaches from functional when it’s appropriate. Avoid using complex classes, especially if the encapsulate state. But they have their uses and people should chose which works best for their use case

      I wouldn’t write cli tools in elixir for example.