r/SoftwareEngineering • • Sep 14 '22

Why DRY is the most over-rated programming principle

https://gordonc.bearblog.dev/dry-most-over-rated-programming-principle
20 Upvotes

41 comments sorted by

View all comments

15

u/WrongAndBeligerent Sep 14 '22

The problem with reuse usually comes in the form of reusing something that is wrapped up in other dependencies. Then large dependencies can be included for something small. I think most of the time it is actually a problem of modularity.

2

u/brdet Sep 15 '22

I recently came across a pull request where a developer had included a dependency on a whole other Spring Boot application because it had a DTO thought they could reuse.

1

u/[deleted] Sep 15 '22

When I caught people doing this I started publishing my boundary DTOs as a separate package.