Tags » Design Pattern

Singleton Design Pattern Using C++

Some times we need a single instance of an object through out the life of entire program in such situation we can use singleton design pattern. 459 more words

C++

Observer Pattern

Observer pattern is used when there is one to many relationship between objects such as if one object is modified, its depenedent objects are to be notified automatically. 314 more words

Design Pattern

Factory Design Pattern in C++

Factory method design pattern is a creational design pattern in which creating an object is done using a factory method instead of calling a constructor.class diagram is as shown below… 304 more words

C++

Software Language Engineering: The Visitor Pattern

This may feel like a slight detour; but believe me, it’s a necessary one. If you are already fully familiar with the Visitor pattern, you are free to skip this section. 1,550 more words

Michael Eric Oberlin

IDataErrorInfo with Fluent Validation

Fluent validation: A small validation library for .NET that uses a fluent interface and lambda expressions for building validation rules for your business objects.

Codeplex link: … 901 more words

C#

use Weak reference for high availability of cache and In-Memory DB operations

You should think about using WeakReference whenever you need a reference to an object, but you don’t want that reference to protect the object from the garbage collector. 117 more words

Java

Factory and Abstract Factory.......

  • Factory method is a single method, and an abstract factory is an object.
  • Factory Method pattern uses inheritance and relies on a subclass to handle the desired object instantiation.
  • 678 more words
Design Pattern