Patterns and principles are guidelines, not rules. You don’t want to just apply them blindly.
You need to balance principles. Over-applying the DRY principle can lead to more complex logic that’s harder to understand than if you just wrote code in-line.
“The one that makes sense”
Patterns and principles are guidelines, not rules. You don’t want to just apply them blindly.
You need to balance principles. Over-applying the DRY principle can lead to more complex logic that’s harder to understand than if you just wrote code in-line.