Quantcast
Channel: Stefano Ricciardi » Design and Patterns
Browsing latest articles
Browse All 7 View Live

Image may be NSFW.
Clik here to view.

Service Locator Pattern in C#: A Simple Example

A Service Locator is a common design pattern that allows decoupling clients of services (described by a public interface) from the concrete class implementing those services. Martin Fowler has a great...

View Article



Image may be NSFW.
Clik here to view.

Service Locator Pattern in C# with Lazy Initialization

In my previous post Service Locator Pattern in C#: A Simple Example I introduced a fairly basic implementation of this pattern. In this post I will address one of the limitations of that...

View Article

Image may be NSFW.
Clik here to view.

A Singleton Service Locator Pattern

This is the third post of a series on the Service Locator pattern. In the first post I described how to create a basic service locator for your C# application, while in the second post I introduced...

View Article

Image may be NSFW.
Clik here to view.

The Difference Between Encapsulation and Information Hiding

If you ask people familiar with Object Oriented Design which are the most important concepts of the paradigm to them, you will surely hear things like classes, inheritance, polymorphism. Some may talk...

View Article

Image may be NSFW.
Clik here to view.

Ninject Mini Tutorial – Part 1

What Is Ninject There are several Inversion of Control (IoC) containers for .NET to pick from (such as Castle Windsor, Structure Map and Microsoft Unity, just to name just a few).  Ninject is one of...

View Article


Image may be NSFW.
Clik here to view.

Ninject Mini Tutorial – Part 2

Go to Part 1   Controlling the Life Cycle of your Objects In the previous post we did not concern ourselves with the lifecycle of the object returned from Ninject kernel. Ninject provides the following...

View Article

Dependency Injection for Dummies

Antonio Vidal has translated this post into Spanish: you can find it here. Dependency injection is a very simple concept: if you have an object that interacts with other objects the responsibility of...

View Article
Browsing latest articles
Browse All 7 View Live




Latest Images