Skip to content

Comment on Solid and Clean Code never felt solid or clean to meparent

Comments

So what's the value here? Single responsibility? That kind of thing is now so known that it doesn't really need talking about

Except I see people getting it wrong constantly, even in the comments here. Its not about keeping code together that's related in functionality, this about keeping code separate by stake holder. For example, if you have two bosses that keep asking for changes related to their departments, you keep their relevant code separate, so when you have to keep updating it for one boss, you don't break the code related to the other boss, and vice versa.

Does it work? I don't know, never been in this situation.

https://en.wikipedia.org/wiki/Single-responsibility_principl...

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.