Re:When you combine two things that are close, but not the same
by jobigoud on Friday April 14, 2023 @09:12AM
(#35569213)
Combining helps when you later have to make changes to the common part, by making it impossible to forget that there is another place in the code you also need to change. Splitting also introduces technical risk.
Is there a specific benefit you see in combining the code here? Combining these together introduces technical risk through increased coupling. Splitting the functionality has very little cost.