• bleistift2@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    41
    arrow-down
    2
    ·
    5 days ago

    C) Write a highly specific, custom-tailored boilerplate generator that does 80% of the work and needs only a day or two to implement.

    • petey@aussie.zone
      link
      fedilink
      arrow-up
      46
      arrow-down
      1
      ·
      5 days ago

      D) spend millions developing an AI to generate the boilerplate generator badly

    • ddplf@szmer.info
      link
      fedilink
      arrow-up
      12
      arrow-down
      1
      ·
      5 days ago

      This sounds just extremely dumb to me, as in “do something manually for 2 minutes or spend 2 days automating it”

      Also, DRY in 90% of the cases is a sham

      • Feathercrown@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        ·
        edit-2
        4 days ago

        DRY is usually helpful if you don’t use it in situations where you have like 2 semi-different things. If they’re actually the same and you have 3 or more then the level of abstraction is worth it almost always.

        • ddplf@szmer.info
          link
          fedilink
          arrow-up
          6
          ·
          4 days ago

          To me, there are two classifications of DRY - one I find harmful, the other very useful.

          First one resembles mathematical extractions, essentially you never allow a single chunk of code to be written twice and you create massive amounts of global util junk. This also creates some bad tight coupling.

          The other is more logical, where you only extract logic in places you want to always change together. Simple and effective.