DRY = Don’t repeat yourself

  • cbarrick@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    6 days ago

    You are wrong.

    DRY has been applied to written code at least since the book Clean Code, which has been widely recommended to programmers for nearly two decades.

    I’m not making a stance here about whether or not that is the right recommendation, but saying that DRY was never meant to be applied to “the code you write” is simply wrong.

    (I remember DRY being pushed before that book, but it’s the only primary source I have at this moment.)

    • AnyOldName3@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      6 days ago

      I thought I was clear enough there that I could get away without a /s at the end. Of course the real meaning isn’t it’s a really good idea to spend a day automating four mouse clicks you only need to do one more time.