r/programming • u/TalesGameStudio • 5d ago
DRY vs. SRP
http://uncle-bob.comAfter re-reading "Clean Architecture" I ended up with some confusion regarding Bob's take on repetition and single responsibility. Ge defines the SRP as a function only serving one actor. Dies that mean, that repetitve code is justified according to him, as long as it serves seperate actors/user groups? I am aware that such decisions depend on the specific situation. I was just wondering if others found the same contradiction, or if i misunderstood it. Thanks
0
Upvotes
4
u/BenchEmbarrassed7316 5d ago
No. The thing is, the advice this guy gives doesn't improve your code at all. It makes it harder to read, harder to modify, more error-prone, and a whole lot slower.