you are viewing a single comment's thread
view the rest of the comments
[–] 7 points 1 year ago

"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.

  • source
  • parent