I'll start by saying that DRY (don't repeat yourself) is not entirely untrue, but an over-simplification to the point of harm as a principle.
Some conflicting ideas with DRY is the law of leaky abstractions and the rule of three which both definitely encourage skepticism of mismanaged attempts at DRY.
I think DRY means well, but IMO is often used harmfully as an idea.
Repetition is always better than the wrong abstraction.
It took me a while to realize this but 100%
"Every piece of knowledge must have a single, unambiguous, authoritative representation within a system."
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I'll start by saying that DRY (don't repeat yourself) is not entirely untrue, but an over-simplification to the point of harm as a principle.
Stop Writing DRY Code
Dylan Anthony ・ Apr 5 ・ 7 min read
Some conflicting ideas with DRY is the law of leaky abstractions and the rule of three which both definitely encourage skepticism of mismanaged attempts at DRY.
I think DRY means well, but IMO is often used harmfully as an idea.
Repetition is always better than the wrong abstraction.
It took me a while to realize this but 100%
"Every piece of knowledge must have a single, unambiguous, authoritative representation within a system."