Oh great. Another bad practice I have to avoid.

  • pinknoise@lemmy.ml
    link
    fedilink
    arrow-up
    6
    ·
    3 years ago

    Just don’t do stuff you don’t understand just because someone has told you to or because you observed someone do it who you think knows better.

    Always take advice and especially rules with a grain of salt. You shouldn’t blindly follow them but try to understand why they work because then you also know when they might not.

    • Amicese@lemmy.mlOP
      link
      fedilink
      arrow-up
      1
      ·
      3 years ago

      I agree. I don’t like the “just follow the authority” rhetoric in education.

  • pingveno@lemmy.ml
    link
    fedilink
    arrow-up
    4
    ·
    3 years ago

    There’s a fine line between cargo cult programming and utilizing common design practices to ease onboarding and communication.

  • Echedenyan@lemmy.ml
    link
    fedilink
    arrow-up
    4
    arrow-down
    1
    ·
    edit-2
    3 years ago

    It happens to me a lot.

    Mostly when a language requires you to do something special. I use to apply it to all cases sometimes.

    It happens with “Fragments” of React, only applied when you want to return more than one tag.