5 ms·
I'm interested in what the drawbacks of SOLID are. Do you have any links or could you briefly outline some?
by Sakos 4y ago
I'm interested in what the drawbacks of SOLID are. Do you have any links or could you briefly outline some?
- _gabe_ 4y agoSure! Here's a few: http://qualityisspeed.blogspot.com/2014/08/why-i-dont-teach-solid.html?m=1 http://qualityisspeed.blogspot.com/2014/08/why-i-dont-teach-... https://blog.cerebralab.com/Bimodal_programming_%E2%80%93_why_design_patterns_fail https://blog.cerebralab.com/Bimodal_programming_%E2%80%93_wh... https://stackoverflow.com/questions/2997965/are-solid-principles-really-solid https://stackoverflow.com/questions/2997965/are-solid-princi... And I have my own opinions of course, but to summarize I usually see SOLID code bases lead to extraordinarily overabstracted code bases that are impossible to debug or explore because everything is an interface that's injected through some DI framework. Exploring these code bases is a nightmare because everytime you Ctrl+Click a function, you're taken to an interface. The best part, the interface only has one implementation 99 times out of 100. But boy does it mess up your flow when your actively tracing and trying to understand a code path. I would argue debugging + maintenance are the majority of a programmer's job. So any ideology that obfuscates your code and makes it increasingly difficult to maintain is not something I want people I code with to follow.