|
|
|
|
|
by xupybd
1196 days ago
|
|
I prefer to use the rule, single source of truth. If you have some business logic make sure you always call the same code to run that logic. That way you're not looking for abstraction layers to do avoid lines of code. You are looking to make sure you don't have subtle bugs that only happen in some code paths. You also only have one place to update as the business rules change. It's the same as dry but avoids confusion. |
|