Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Let someone modify whatever the hell they want. If they screw it up, that's on them.

If changing a common component or library breaks my code, they may be at fault, but it's still my feature that breaks. The open-closed principle is about sandboxing modifications to the scenarios that need those modifications. It's not about babysitting.

Without it, when you make a change you need to consider every consumer or risk breaking their case. Or, you get these nightmarish components that have "modes" (if I'm included in this context, act like this, if I'm included in that context, act differently).



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: