News for hackers. Stuff that matters.
Re:Laws, theories, principles and patterns that developers m... by feoren on Tuesday November 05, 2019 @01:35AM (#21450216)
SOLID is about how your codebase and compiled libraries change in response to changing requirements. Open/closed says that if your code is well architected, then you should be able to handle changes by using existing modules (e.g. classes or functions) in new ways (extension) instead of cracking open the source code and modifying it. If you see that one particular file is being changed in commit after commit, it is a prime candidate for refactoring to better follow the OCP.

There are no comments on this comment yet.