Remix.run Logo
Cpoll 5 hours ago

Uncle Bob does a bad job talking about trade-offs, but there's still value in stuff like SOLID. The problems start when people blindly obey or ignore design principles.

Saying SOLID makes bad code is as over-simplistic as saying SOLID makes good code.

mattmanser 5 hours ago | parent [-]

The trouble with SOLID is that it's mainly an artifact of old languages and paradigms.

3 of the letters are almost irrelevant in modern code, or barely worth thinking about most of the time.

So what's the value here? Single responsibility?

That kind of thing is now so known that it doesn't really need talking about, like you don't really need to endlessly discuss the database normal forms like people did in the 00s.

Concepts that are worth explaining to beginners, but most code will follow it by default.

Seeing it in job descriptions is more an indicator that a company has an inexperienced lead more than anything else.

readthenotes1 5 hours ago | parent | next [-]

Single Responsibility was written about nearly 40 years after cohesion was grafted into software design from an actual architect's (like buildings and cities, absolutely not software o doctoral thesis.

"That kind of thing is now so known that it doesn't really need talking about, like you don't really need to endlessly discuss the database normal forms like people did in the 00s."

Has humanity progressed so much that we no longer forget the lessons of the past?

That would indeed be a good thing but I am not so sure of it.

HelloNurse 4 hours ago | parent [-]

On the contrary, the new trend of telling a bot to write code automates disregard for architecture.

bluGill 5 hours ago | parent | prev [-]

If single responsibility is so well known, when did I just this week see some code that violated that from a senior engineer? That code past review by a couple other programmers, without me looking at it and pointing out how horrible it was.