3 ms·
That just improves the organization of the program; it doesn't get rid of the increased risks of doing the same thing in N ways that could be pined down to one.
by kazinator 1y ago
That just improves the organization of the program; it doesn't get rid of the increased risks of doing the same thing in N ways that could be pined down to one.
- kccqzy 1y agoPlease elaborate. What are the risks of doing the same thing in N ways, other than code organization issues leading to duplicate or messy code?
- kazinator 1y agoDo this thing in 3 ways, do that one in 4, do another one in 2 and you have 3x4x2 = 24 combinations which are entirely gratuitous compared to the 1 combination that exists if all three things are done one way each. Oh, you don't have to test the combinations because the code is bug free, is that the argument? Which is because of some good organization? Those things are nicely isolated so 3 + 4 + 2 unit tests, and we are done?