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
    1
    ·
    8 hours ago

    Okay, so… Method chaining, and no refs being passed as params, and structs.

    I dislike pure functional programing (not the same as pure functions) because of the boilerplate you need. Want to add a cache? Add a state monad throught the whole pipeline.

    Want to have readable code in a six month? Forget it, because you’re gonna write in point free style, compositiona without naming inputs and outputs, so that the next time you visit this place, you’ll have to check every function for them.