• thingsiplay@beehaw.org
    link
    fedilink
    arrow-up
    21
    arrow-down
    1
    ·
    4 months ago

    Trying to abstract everything away in multiple layers of classes and function calls, just to avoid to write a 2 lines of code twice is the biggest evil in programming. Well probably not the biggest, but a huge problem in my opinion. Adding unnecessary complexity due to being clever is evil.

  • magic_lobster_party@fedia.io
    link
    fedilink
    arrow-up
    20
    ·
    4 months ago

    Excessive deduplication is an anti pattern.

    The point about removing duplicates is to make the maintaining of the code easier. If it makes it harder, then it’s the wrong abstraction.