• ddplf@szmer.info
    link
    fedilink
    arrow-up
    6
    ·
    16 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.