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.

      • LeapSecond@lemmy.zip
        link
        fedilink
        arrow-up
        13
        ·
        1 month ago

        Another unpopular opinion: this alignment style looks terrible and wastes space. If you want alignment just start the parameters in a new line.

      • Archr@lemmy.world
        link
        fedilink
        arrow-up
        9
        ·
        1 month ago

        Fuck… They are right. This makes a lot of sense.

        Now I have to share this with everyone at work.

      • MarauderIIC@lemmy.zip
        link
        fedilink
        arrow-up
        3
        ·
        1 month ago

        Does that rule have autoformatting support? If not it’s a time waster anytime the parameters get refactored. I’m firmly in the camp of “machines do my formatting”

      • Orygin@sh.itjust.works
        link
        fedilink
        arrow-up
        2
        ·
        1 month ago

        That’s how it’s always supposed to be. Tabs for indent, spaces for alignment. Languages that do not support this are trash

      • GroundedGator@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        1 month ago

        I used to do this and it absolutely makes sense. However, I’ve shifted to tabs only and have removed the need for alignment with newlines.

    • PattyMcB@lemmy.world
      link
      fedilink
      arrow-up
      9
      arrow-down
      4
      ·
      1 month ago

      Ooh… good one, but any good IDE and/or source control will convert tabs to spaces anyway.

      • freagle@lemmy.ml
        link
        fedilink
        English
        arrow-up
        15
        arrow-down
        3
        ·
        1 month ago

        Any good IDE and source control should convert spaces to tabs. QED