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.

  • Windex007@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    15 hours ago

    Curious how bad they’d have to be to land you at that position.

    If they’re hard to write, it’s kinda a red flag about the overall code itself. Forcing people to write them tends to force people to use better patterns just so the associated tests aren’t a bitch.

    And they pin behavior more than strict correctness, in my experience, but that’s a valuable signal. Canaries in the mine.

    You can be much more bold when you’ve got strong coverage.

    So I do admit some of the benefits might feel intangible… But boy howdy you’ll miss them if you move to a shop that never bothered. You’ll see the dumbest fucking patterns and be kinda handcuffed to do anything good.