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.

RECENT POSTS

  • Gaurav Gahlot

    Dependency Injection - Part 7 - Service Locator Pattern

    Service locator pattern is one of the most commonly used patterns. In general, this pattern is used along with other patterns like Adapter Pattern, Observer Pattern, Dependency Injection Principles...
    Gaurav Gahlot Sep 18, 2017
  • Gaurav Gahlot

    Dependency Injection - Part Six - Autofac's "AsImplementedInterfaces"

    While I was exploring Autofac, I found AsImplementedInterfaces quite interesting. Not only because it is useful, but also because if we are not careful with its use, we may end up with unexpected a...
    Gaurav Gahlot Sep 11, 2017
  • 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

    Dependency Injection - Part Four -Embracing Abstraction

    Dependency Injection (DI) is a technique that helps us achieve loose coupling between objects and their collaborators. In this post, we will use constructor based dependency injection, however, we...
    Gaurav Gahlot Aug 18, 2017
  • Gaurav Gahlot

    Dependency Injection - Part 3 - Implicit Vs Explicit Dependencies

    If a component or class depends upon other components to complete its operations, then these other components are dependencies for this class. Our class can have these dependencies as implicit or e...
    Gaurav Gahlot Aug 18, 2017
  • Gaurav Gahlot

    Dependency Injection - Part One -Tightly Coupled Application

    It is a best practice to use interfaces instead of concrete classes. These interfaces can then be mocked at the time of unit testing, which will prevent any call to the actual database. Also, it is...
    Gaurav Gahlot Aug 18, 2017
  • Gaurav Gahlot

    Dependency Injection - Part Two - Five Reasons To Write Loosely Coupled Code

    A loosely coupled application has good isolation among its classes, modules and assemblies. Therefore, if we make a change to one part of the application, we only need to update the relevant module...
    Gaurav Gahlot Aug 18, 2017
  • Gaurav Gahlot

    Analyzing A Tightly Coupled Application

    In this video, we looked at a tightly coupled application and tried to understand the problems associated with the same. You may also visit my article about the same at http://www.c-sharpcorner.com...
    Gaurav Gahlot Aug 18, 2017
  • Gaurav Gahlot

    Null Object Design Pattern

    A null object is also known as a Stub, an Active Nothing or an Active Null. It helps our program logic to get rid of null checks where ever possible. We all know, that we can not call methods on a ...
    Gaurav Gahlot Jul 29, 2017
  • Jasminder Singh

    Proxy Design Pattern Using C#

    This article explains the Proxy Design Pattern. Proxy Design Pattern acts as a representation of an object and will basically be the access point to use the original object.
    Jasminder Singh Jun 27, 2017
  • Jasminder Singh

    Decorator Pattern Using C#

    This article is explaining the Decorator Pattern. This pattern is part of the Structural Design Patterns. The purpose of the Decorator Pattern is to extend the existing functionality of the objects...
    Jasminder Singh Jun 27, 2017
  • Akkiraju Ivaturi

    Singleton Vs Static Classes

    Why do you use a Singleton class if a Static class serves the purpose What is the difference between Singleton and Static classes and when do you use each one in your program?
    Akkiraju Ivaturi Jun 27, 2017
  • Pradeep Shet

    Dependency Injection (DI) and Inversion of Control (IOC)

    Inversion of control (IOC) talks about who is going to initiate the call to dependent object where as the Dependency Injection (DI) talks about how one object can acquire dependency.
    Pradeep Shet Jun 26, 2017
  • Pradeep Yadav

    Prototype Pattern In C#

    Prototype Pattern in C# comes under the creation type design pattern. It is used for creating duplicate objects or for cloning an object. You can create prototype instance.
    Pradeep Yadav Jun 20, 2017
  • Mr. Gaia

    Active Events - The Only Design Pattern You Need

    In this blog you will learn about active events. Active Events is a design pattern yours truly invented several years ago. It features some unique traits, since it allows you to completely decouple...
    Mr. Gaia Jun 20, 2017
  • Pradeep Yadav

    Adapter Pattern

    Adapter Pattern.
    Pradeep Yadav Jun 19, 2017
  • Hr Rony

    Crazy Factory Pattern And Direct Object Creation Problem

    Direct object creation design and problem analysis; how to connect with anti-pattern; concept of factory pattern; when, where and why to use it; the benefits; conditional factory pattern and proble...
    Hr Rony Jun 18, 2017
  • Gul Md Ershad

    Food Delivery Application Using Design Patterns

    This article will explain the design and development of a food delivery application by using different kinds of design patterns.
    Gul Md Ershad Jan 06, 2017
  • Arjun Singh

    Software Architecture And Patterns

    In this article you will learn about software architecture and patterns.
    Arjun Singh Dec 22, 2016
  • Gopal C. Bala

    Complete Application Flow With Web API 2.0, CORS, Unit Of Work Repository Pattern, Unity And Angu...

    In this article you will learn how to complete Application Flow with Web API 2.0, CORS, Unit of Work Repository Pattern, Unity and AngularJS Routing.
    Gopal C. Bala Dec 12, 2016
  • Pradeep Sahoo

    Understanding GOF Design Pattern With Simple Examples - Part One

    In this article, we will go through some of the highly used design patterns, with simple examples.
    Pradeep Sahoo Nov 20, 2016
  • Gul Md Ershad

    Traffic Light System - Design Pattern

    In this blog, I will explain the concept to design a traffic light system, using a Design Pattern like State Design Pattern.
    Gul Md Ershad Oct 13, 2016
  • Gul Md Ershad

    Good And Bad Things About Singleton Design Pattern

    This blog is intended to explain the concept of good and bad things about Singleton Design Pattern.
    Gul Md Ershad Oct 08, 2016
  • Gul Md Ershad

    Sales Tax Problem With Design Pattern

    In this article, you will learn about Sales Tax Problem with Design Pattern.
    Gul Md Ershad Oct 07, 2016
  • Mukesh Kumar

    Factory Design Pattern Real World Example

    In this article, you will see the real world example of Factory Design Pattern.
    Mukesh Kumar Sep 13, 2016
  • View More