|
|
|
|
|
by horsawlarway
1053 days ago
|
|
> I'm taking about scenarios where the business logic needs to be exactly the same in both cases, there just happens to multiple ways to reach that point. I've seen lots of these cases turn out to be "the business logic happens to be exactly the same in both cases". It might have been a single feature at one point where it should have been identical, but two flows going there in two different ways means it's serving two masters. Often it will diverge as the product grows and those flows become their own features with differing requirements. --- And also - "it takes less thought/time to copy and paste a few lines of code than it does to factor them out into a reusable function and decide where to put it (and with what name)." Yes, that's the point. It takes both less time and thought, and it often diverges anyways. You are wasting time and creating complexity. |
|