DRY = Don’t repeat yourself

  • PieMePlenty@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    20 days ago

    Ultimate DRY: just keep refactoring the one method to accept hundreds of parameters and do everything.

    Add two numbers? DoIt(1, 2);

    Subtract? DoIt(null, null, 3, 1);

    Etc.