Hacker News new | ask | show | jobs
by AlexSW 1212 days ago
Which SOLID principles have you found issues with, either theoretically or in practice? They still seem like broadly sensible principles to me.
1 comments

For example the Open Closed principle is often times used to justify a plethora of inheritance chains rather than having a more generic class that can handle cases based on some parameter. Specially when all a subclass does is modify some class attribute or change some implementation by one line. Obviously some times it's good to apply the principle, but not EVERY time it fits.