This isn't so much of a "truth" as it is an oddity.
DRYness is good. Decoupling is good. But the only way to increase DRYness is to increase coupling.
Recently I've tested making "util" classes/files (depending on language), where I put functions that have to be used from multiple classes.
These I try to keep as small and generic as possible, so that coupling errors don't happen (and so far they haven't).
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.
This isn't so much of a "truth" as it is an oddity.
DRYness is good. Decoupling is good. But the only way to increase DRYness is to increase coupling.
Recently I've tested making "util" classes/files (depending on language), where I put functions that have to be used from multiple classes.
These I try to keep as small and generic as possible, so that coupling errors don't happen (and so far they haven't).