DRY = Don’t repeat yourself

  • @PieMePlenty
    link
    126 hours 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.