• DrDeadCrash
    link
    fedilink
    arrow-up
    10
    ·
    3 days ago

    I feel like if one tried to follow all of these “rules” at all times nothing would get done, at all.

    • BradleyUffner@lemmy.world
      link
      fedilink
      English
      arrow-up
      11
      ·
      3 days ago

      A code smell isn’t supposed to be automatically bad. A smell is an indication that something might be wrong. Sometimes using a smelly pattern is legitimately the only way to do something.

    • pcouy@lemmy.pierre-couy.frOP
      link
      fedilink
      arrow-up
      6
      ·
      edit-2
      2 days ago

      Apart from the fact that, as another commenter said, “smells” are not “rules”, I think most of these points come down to developing good habits, and ultimately save a lot of time in the long run by initially spending some time thinking about maintainability and preventing/limiting technical debt accumulation.