今日已更新 256 条资讯 | 累计 29398 条内容
关于我们

DRY vs. SRP

/u/TalesGameStudio 2026年08月08日 17:44 0 次阅读 来源:Reddit r/programming

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 submitted by /u/TalesGameStudio [link] [留言]

本文内容来源于互联网,版权归原作者所有
查看原文