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.


  • David Anderson

    WPF MVVM - Working With Tab Controls And Tab Content

    Learn how to create, open, and close tabs effectively using the MVVM pattern with WPF. Facilitates unit testing.
    David Anderson Feb 21, 2018
  • David Anderson

    Introduction To Model-View-ViewModel Pattern For WPF

    Introduction to the MVVM (Model-View-ViewModel) pattern in WPF.
    David Anderson Feb 19, 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
  • David Anderson

    Business Layer With Active Record Pattern And Entity Framework

    In this video I take you back to the basics. I show you how to build a business layer using Active Record pattern as the foundation. We will explore the downsides, and discuss challenges and benefi...
    David Anderson Feb 14, 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 Feb 13, 2018
  • 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 Feb 13, 2018
  • 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 Feb 13, 2018
  • 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 Feb 13, 2018
  • 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 Feb 13, 2018
  • 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 Feb 13, 2018
  • Prakash Tripathi

    Design Patterns Simplified - Strategy

    This article explains what Strategy Design Pattern is and how to use it in software design and development.
    Prakash Tripathi Feb 13, 2018
  • 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 Feb 12, 2018
  • Pradeep Yadav

    Overview Of Strategy Design Pattern

    In this article, we will learn about Strategy Design Pattern.
    Pradeep Yadav Jan 23, 2018
  • Prakash Tripathi

    Design Patterns Simplified - Chain Of Responsibility

    This article explains what Chain of Responsibility Design Pattern is and how to use it in software development.
    Prakash Tripathi Jan 22, 2018
  • Gul Md Ershad

    Cab Booking And Scheduling By Using Command Design Pattern And Scheduler

    This article explains the cab booking & scheduling system by using Command Design Pattern and Scheduler.
    Gul Md Ershad Jan 20, 2018
  • Gul Md Ershad

    Railway Ticket Fare Calculation With Strategy Pattern

    This article explains how to calculate Railway ticket fare by using Strategy Design Pattern.
    Gul Md Ershad Jan 15, 2018
  • Manoj Kalla

    Welcome To CSS / CSS3 Tutorial Series - Part One

    In this series you will learn about property-wise.
    Manoj Kalla Jan 03, 2018
  • Allen O

    The Basics Of YAML In 5 Minutes Or Less!

    This quick read will teach you the basics of YAML markup language in the time it takes to make a cup of tea :)
    Allen O'neill Dec 29, 2017
  • Gaurav Gahlot

    Leveraging Lazy Instantiation In Our Application

    In this video, I have talked about optimizing an application by using Lazy Initialization in an application that is using dependency injection and is therefore loosely coupled.Enjoy the video.
    Gaurav Gahlot Dec 18, 2017
  • Shivprasad Koirala

    Design Pattern Interview Question Part 1

    This article talks about factory, abstract factory, prototype pattern from interview point of view.
    Shivprasad Koirala Dec 15, 2017
  • Gaurav Gahlot

    Leveraging Delayed Instantiation with Lazy

    When we inject a dependency as Lazy<T>, we delay the construction of part of the object graph either for functional or performance reasons. Moreover, Lazy<T> will be automatically injec...
    Gaurav Gahlot Dec 11, 2017
  • Ozioma Ogbe

    Your Singleton Might Not Be "Single"

    Singleton has been a very popular design pattern as it is proven to have some advantages compared to the global variables
    Ozioma Ogbe Nov 21, 2017
  • Gul Md Ershad

    Dynamic Filter By Using Intercepting Filter Pattern

    This article explains Dynamic Filter using Intercepting Filter Pattern
    Gul Md Ershad Nov 19, 2017
  • Ashish Joshi

    Dependency Injection And Inversion Of Control C# - Par Two (Implementation)

    This demo is based on a traditional implementation approach: We have a Product class and it has a method which takes the discount and based on some business logic it applies the discount on the pro...
    Ashish Joshi Nov 17, 2017
  • Ashish Joshi

    Dependency Injection And Inversion Of Control C# - Part One (Concept)

    Dependency Injection is one of the SOLID" principles which helps to decouple the code by making sure that we depend on abstractions not on implementation of concrete classes.
    Ashish Joshi Oct 30, 2017
  • View More