concept LOSED in category .net

appears as: LOSED
Dependency Injection in .NET

This is an excerpt from Manning's book Dependency Injection in .NET.

Loose coupling enables you to write code which is open for extensibility, but closed for modification. This is called the OPEN/CLOSED PRINCIPLE. The only place where you need to modify the code is at the application’s entry point; we call this the COMPOSITION ROOT.

Notice that you were able to add behavior to ProductRepository without changing the source code of existing classes. We didn’t have to change SqlProductRepository to add auditing. This is a desirable trait, known as the OPEN/CLOSED PRINCIPLE.

You may have noticed a denser-than-usual usage of terms such as SINGLE RESPONSIBILITY PRINCIPLE and OPEN/CLOSED PRINCIPLE. These are items on the SOLID five-course menu.