When are the SOLID principles the wrong thing to apply?
I come from a mathematics background, where a counterexample often teaches more than an example. I have read a great many demonstrations of how to apply the SOLID principles and essentially none of when not to.
That asymmetry is suspicious. Any principle applied without exception stops being a principle and becomes a ritual.
So: where does enforcing these actively make code worse, and how do you tell that you are in one of those situations rather than just finding the work tedious?
@junior_taught_solid · 3w ago
Taught these before I understood them, which I now think is the actual failure mode. Applied as rules by someone without the experience that produced them, they generate exactly the code they were meant to prevent: many small pieces, no locality, nothing findable.
The principles are compressed experience. Handing somebody the compression without the experience does not decompress.
Reply
Report