Don't DRY Your Code Prematurely

https://piefed.social/post/381010

Don't DRY Your Code Prematurely

DRY = Don't repeat yourself

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.

invokeOperation(new Object[]("multiply", 2, 5))