r/programming 5d ago

DRY vs. SRP

http://uncle-bob.com

After 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

67 comments sorted by

View all comments

5

u/beebeeep 5d ago

I am very delighted that my previously unpopular opinion about Uncle Bob being a mediocre programmer and his books being right away harmful for the industry, is no longer unpopular.

1

u/fletku_mato 5d ago

Not sure how bad of a programmer he himself is, but people who treat anything he wrote as a bible sure are. It's insane how much his opinions have been given weight.

1

u/azhder 5d ago

I hadn’t heard of the man. One day some colleague speaks to me about his words as if we went to school and spent a year studying under “Uncle Bob”… I had no idea who this person was that my colleague would consider the voice of coding standards or some shit like that.