Design Patterns & Practices
Design patterns & practices accelerate the design and development of custom applications and reduce project technical risks. Here you may find Design Patterns & Practices related articles and news.


  • Sanwar Ranwa

    Session Facade Design Pattern

    In developing software its very important to use proper design patterns,In learning design patterns its important to Observe which design pattern properly fit on our problem and how we use appropri...
    Sanwar Ranwa Aug 20, 2018
  • Hemant Jindal

    Repository And UnitOfWork Pattern - Part Two

    In the previous article part 1 we looked at the Repository Pattern that provides an ability to create repository class which holds the data of specific entity or entities in the form of collections...
    Hemant Jindal Aug 13, 2018
  • Hemant Jindal

    Repository And UnitOfWork Pattern - Part One

    Repository as it implies is a place where things are stored and can be found and retrieved whenever needed. Similarly, in computing terms, repository is a central location in which data for a speci...
    Hemant Jindal Aug 12, 2018
  • Sanwar Ranwa

    Design Patterns From The Beginning - Day Two

    In the second part of my design patterns articles series, we are going to learn about the classification of design patterns according to the nature of the design problem they solve.
    Sanwar Ranwa Aug 08, 2018
  • Sanwar Ranwa

    Design Patterns From Beginning - Day One

    A software developer will make software/application to solve or achieve the requirements of a Company or An Organization Using different programming language.In Application development developers m...
    Sanwar Ranwa Jul 30, 2018
  • Hemant Jindal

    Observer Pattern - Implementation In .Net Framework

    This article describes the Observer pattern and the interfaces .Net Framework provides.
    Hemant Jindal Jul 23, 2018
  • Gaurav Gahlot

    Breaking Circular Dependency Between Components

    Couple of days ago, I came across a piece of code that was not just tightly coupled but also formed a circular dependency among the components. In this article, I've tried to give you a gist of...
    Gaurav Gahlot Jul 07, 2018
  • Ashish Vishwakarma

    Understanding State Design Pattern By Implementing Finite State Machine In Super Mario Game

    In object oriented programming State Pattern is one of the way to implement Finite State Machines. This pattern falls under Behavioral Design Patterns.
    Ashish Vishwakarma Jun 25, 2018
  • Ashish Vishwakarma

    Improving Efficiency With Strategy Design Pattern In JSON Parser Example

    Here we will see how Strategy Pattern helped in refactoring code in JSON parser example
    Ashish Vishwakarma Jun 04, 2018
  • Arvind Singh Baghel

    Difference Between Software Design Principles - DRY And KISS

    In this article, we will explain the main basics of two software design principles, DRY and KISS.
  • Ashish Vishwakarma

    Leveraging Template Method Design Pattern In Logger Example

    Here we will understand the use of Template Method Design Pattern by gradually refactoring our code.
    Ashish Vishwakarma Jun 01, 2018
  • Hemant Jindal

    Singleton Implementation With Real World Example

    This article describes different ways of singleton pattern implementation and how to make the singleton class thread-safe. I have described with real time problem and given a reference of source co...
    Hemant Jindal Jun 01, 2018
  • Gaurav Gahlot

    Composed Relationship Types - Func<Owned<T>>

    It's the beauty of relationship types, that they can work in conjunction with one another. Therefore, we can compose relationship types to solve a particular problem.
    Gaurav Gahlot Apr 10, 2018
  • Ayoub Bouchaqour

    Separation Of Concern And Data Access From Within Code

    In this article, you will learn the separation of concern and data access from within code.
    Ayoub Bouchaqour Mar 24, 2018
  • Gaurav Gahlot

    Func<T> - Dynamic Instantiation

    The article talks about scenarios where we want more than one instance of a given service
    Gaurav Gahlot Mar 06, 2018
  • Gaurav Gahlot

    Owned<T> - Controlled Lifetime In Dependency Injection With Autofac

    Generally speaking, an owned dependency corresponds to some unit of work performed by the dependent component.
    Gaurav Gahlot Feb 16, 2018
  • Gaurav Gahlot

    Dependency Injection - Part Five - Using A DI Container (Autofac)

    A DI container takes the responsibility of instantiating and providing the dependency instances, irrespective of the level of dependencies. As a result, it is a container that manages the scope of ...
    Gaurav Gahlot Aug 29, 2017
  • Gaurav Gahlot

    Direct Dependencies And Enumeration

    In this post, we will be talking about the two most commonly used types of relationships, namely, direct dependency relationship and enumeration.
    Gaurav Gahlot Oct 09, 2017
  • Gaurav Gahlot

    Using Lazy<T, TMetadata> In Dependency Injection

    Lazy<T,TMetadata> is a type provided by MEF to hold indirect references to exports. Here, in addition to the exported object itself, you also get export metadata, or information that describe...
    Gaurav Gahlot Dec 11, 2017
  • Gaurav Gahlot

    Why "Service Locator" is an "Anti-Pattern" for Dependency Injection

    The Service Locator is used as a replacement for the new operator. The problem with service pattern is that it hides a class's dependencies and is a bonafide anti-pattern. In fact, it takes awa...
    Gaurav Gahlot Sep 29, 2017
  • View More