Tagged: SOLID

Implementing the Open-Close Principle in C#

The Open-Close Principle The Open-Close Principle states that software entities (classes, object, module, etc.) should be open for extensions, but closed for modifications. So, what does the principle mean to us?  Basically, it says that if you created a class, you do not change the internals of the class (close for modifications) if...

The Single Responsibility Principle (SRP)

How many times you have been tasked to change a class because some functionality is out of date and needs some upgrade? How many times a simple change turns out to be a complicated egg hunt of how a class is working? How many times a small business decision, such...