hono4kami to [email protected]English • edit-26 months agoDon't DRY Your Code Prematurelytesting.googleblog.comexternal-linkmessage-square28fedilinkarrow-up1106
arrow-up1106external-linkDon't DRY Your Code Prematurelytesting.googleblog.comhono4kami to [email protected]English • edit-26 months agomessage-square28fedilink
minus-square@[email protected]linkfedilink25•6 months agoUltimate 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.
minus-square@[email protected]linkfedilink7•6 months agoinvokeOperation(new Object[]("multiply", 2, 5))
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.
This guy seniors