concept RINCIPLE in category .net

appears as: RINCIPLE
Dependency Injection in .NET

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

Figure 1.6. Using sockets and plugs, we can replace the original hair dryer from figure 1.5 with a computer. This corresponds to the LISKOV SUBSTITUTION PRINCIPLE.

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.

This approach can be generalized, providing us with the ability to INTERCEPT a call from a consumer to a service; this is what we’ll cover in this chapter. Like the veal cutlet, we start out with a basic ingredient and add more ingredients to make it better, but without changing the core of what it was originally. INTERCEPTION is one of the most powerful abilities that we gain from loose coupling. It enables us to apply the SINGLE RESPONSIBILITY PRINCIPLE and Separation of Concerns with ease.

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.