Closed. This question is seeking recommendations for books, tools, software libraries, and more. It does not meet Stack Overflow guidelines. It is not currently accepting answers.
Considering the following code public interface IEntity { int Id { get; set; } } public class User : IEntity {
The title may not be too descriptive, but I couldn\'t think of a better one. I\'m sorry for that. So, the problem I am having here is one I have come across a couple of times now. It\'s really about
I was refactoring some old code of a simple script file parser when I came across the following code:
The open/closed principle seems to be about preventing regressions in an object or method. Given that your code is covered by tests because you\'re practicing BDD this seems a redundant requirement. I
I have recently been trying to learn about basic design principles and the OCP has me a bit confused. It makes sense that when a change happens it is preferable to extend the system rather than modify
I\'m trying to figure out how this would be done in practice, so as not to violate the Open Closed principle.
Does the Factory Method pattern (not to be confused with the Factory or Abstract Factory patterns) violate the Open/Closed principle?