Learn it from developers who built it.
Tutorials, how-tos and deep dives on AI, .NET, C#, cloud and developer tools, written by the community.
In this article we are going discuss how to implement DI with the containers available.
In this article you will learn the types of Dependency Injections and what does it mean by Inversion of Control.
In this article, we are going to discuss the third principle of SOLID design principles i.e. the Liskov Substitution Principle.
In this article, we discuss about the “I” in the “SOLID” i.e. Interface Segregation Principle.
In this article, we discuss the last acronym “D” in the “SOLID” i.e. the Dependency Inversion Principle.
Here we will discuss the second letter in the word SOLID i.e., O. O stands for OCP (Open Closed Principle).
This article will cover the acronyms for SOLID and a brief introduction to Cohesion and Coupling is provided to understand the SOLID principles.
CQSR is an architectural pattern which states that while designing the data access layer in a project, it can be split into two separate units of codebase.
Today, in this article let’s play around with one of the interesting and most useful concepts of design patterns, which will be hosted on a web app.
Today, in this article let's play around with one of the interesting and most useful concepts of design patterns, which will be hosted in a web app.
Learn how to implement the Adapter design pattern in C# with an ASP.NET Web Forms calculator example using interfaces and arithmetic service classes.
The GOF Strategy and State patterns are remarkably similiar and it is really only a minor implementation detail that distinguishes the two.
Learn how to implement the GoF Strategy pattern in C# using interchangeable math-operation algorithms and a context class.
The Provider Model Design Pattern was first introduced with the .NET 1.1 framework, specifically in the ASP.NET starter kits and was formalized in ASP.NET Whidbey as a membership management provider API (Application Program Interface). It's primary purpose is to separate the definition for an API from the implementation. This keeps the API flexible by enabling the core functionality to be flexible and easily changed.
The Prototype pattern is used when creating an instance of a class is very time-consuming or complex in some way.
Trying to build better solutions and growing as a developer has always been fun for me and I’m always looking for ways to build more scalability and robustness in the software I am writing. I had a revelation that I’ve been doing a lot of C# tweaking but not taking advantage of the core performance enhancements cooked right into C# and it all comes down to one thing: Asynchronous multi-threaded programming.
The factory method pattern is a creational design pattern used in software development to encapsulate the process of creating the objects.
Using the .NET framework we basically have two ways to provide abstraction for our code: Classes and Interfaces. This article will look at the use of each and cover some things to consider when choosing between them in different situations.
This article introduces a reusable generic event cache component that houses events with custom bubbling capabilities. This can be used as a component in your business objects to provide event declaration runtime with events that can bubble to other classes.
In this article we will implement Singleton pattern to maintain global variables in Winform application.
The power of adding a functional extensibility point to our classes via the visitor pattern is often overlooked. Using a visitor pattern is a very effective means of providing a nice boundary around a set of core classes while at the same time allowing for functional change. This article will demonstrate how the visitor pattern can be used as an extensibility mechanism and provide a boundary to keep core domain classes from getting cluttered.
Mainly the term caching is used in web applications environments to store commonly used database values.
Learn how to implement the Singleton pattern in C#, including lazy initialization, thread-safe locking, static initializers, and static classes.
This article shows how to create a reusable batch job template.
In this article you will learn how to use Chain Of Responsibility Design pattern.
The Command pattern creates distance between the client that requests an operation and the object that can perform it.
The Strategy pattern enables a client to choose which algorithm to use from a family of algorithms and gives it a simple way to access it.
In this walkthrough I'll try to explain GOF (Gang of Four) Abstract Design pattern. This article is about managing multiple connection strings of different data providers (SQL, Oracle, OleDB etc.).
The Iterator pattern provides a way of accessing elements of a collection sequentially, without knowing how the collection is structured. As an extension, the pattern allows for filtering elements in a variety of ways as they are generated.
In this article I am trying to demonstrate the usage of Builder Pattern using a Computer Assembling Robot. Builder Pattern is one among the 23 patterns by Gang Of Four.
Everything on Design Patterns & Practices, not only its articles: the Design Patterns & Practices page →
Write an article and earn +1,000 SHARP when it is approved.
Write an article