Jeffrey Bakker
1 min readNov 27, 2021

--

I’ll have to disagree with your bold claim that fans of the principle can’t think for themselves. Many of us have gone years, some even decades, before even hearing about SOLID (and therefore SRP). A lot of us have been burned by poor OO architecture that was a nightmare to work with, and in my experience, was due to the lack of such concepts of SRP and the rest of SOLID.

In the “professional” software industry, where I’ve seen single C# files growing as large as 4,000, 8,000, and 16,000 lines (and not generated code, I mean 100% hand-written). And by then it’s hopelessly impossible to refactor in many cases. Nobody intends to create a heaping pile of mess like that, but time and time again that’s what can happen in OO programming without SRP.

I welcome and encourage SRP, which would forbid this from ever being a fraction as bad. One can say that it’s even liberating - a far cry from Stockholm syndrome.

--

--

Jeffrey Bakker
Jeffrey Bakker

Written by Jeffrey Bakker

Professional geek. Wannabe cyclist.

No responses yet