Related resources for Design Patterns
  • Factory Design Pattern Using Delegates In C#11/27/2024 9:52:19 AM. Factory Pattern is a creational design pattern that provides a way to encapsulate object creation. Instead of directly instantiating objects, you delegate the creation process to a factory class.
  • REPR Pattern - For C# Developers9/27/2024 8:14:53 AM. Discover the REPR Pattern, a powerful design technique tailored for C# developers. Learn how this pattern can simplify code structure, improve maintainability, and optimize performance in C# applicati
  • Why "Service Locator" is an "Anti-Pattern" for Dependency Injection9/26/2024 8:29:26 AM. The "Service Locator" pattern, while widely used, often leads to issues in software design, making it an anti-pattern in the context of Dependency Injection (DI). This article explores the d
  • Repository Design Pattern in MVC Architecture With Entity Framework9/18/2024 5:49:26 AM. In this article, we will learn the Repository Design Pattern in MVC Architecture with Entity Framework simplifies data access by creating a layer between the data and business logic.
  • Singleton Pattern: Ensuring a Single Instance in .NET Core9/17/2024 7:19:37 AM. In this article, we learn about Singleton Pattern: Ensuring a Single Instance in .NET Core. The Singleton Pattern ensures a class has only one instance, providing global access. It's commonly used
  • Abstract Factory Pattern: Designing Families of Related Objects in C#9/17/2024 5:10:34 AM. The Abstract Factory Pattern provides an interface for creating families of related objects without specifying their concrete classes. It ensures consistency and flexibility in object creation, useful
  • Factory Method Pattern: Simplifying Object Creation in C#9/17/2024 4:01:43 AM. The Factory Method Pattern is a creational design pattern that delegates object creation to subclasses, promoting flexibility and maintainability. It defines an interface for creating objects but lets
  • Categorizing Design Patterns: Creational, Structural & Behavioral9/16/2024 8:17:37 AM. In this article we will learn about Categorizing Design Patterns: Creational, Structural, and Behavioral. It provides real-life examples, benefits, and challenges, offering developers insights for be
  • The Importance of Design Patterns in .NET Core Development9/16/2024 6:11:56 AM. This article discusses the importance of design patterns in .NET Core development, highlighting how they enhance scalability, maintainability, and flexibility. Key patterns include Singleton, Reposito
  • What Are Design Patterns? Understanding the Basics9/16/2024 5:51:51 AM. Design patterns are essential in software development, offering reusable solutions to common problems. By applying patterns like Singleton, Factory Method, and Observer, developers create flexible, ma
  • Builder Pattern: Constructing Complex Objects9/14/2024 1:58:12 PM. In this article, we learn about Builder Pattern: Constructing Complex Objects. The Builder Pattern simplifies the creation of complex objects through step-by-step construction. It enables flexibility,
  • A Guide to Using the Decorator Pattern in Your C# Code9/4/2024 5:40:43 AM. In this article, we will learn how to implement this pattern in your C# code, improve code reusability, and follow best practices for more maintainable and flexible software design.
  • Understanding State Design Pattern9/2/2024 5:00:07 AM. This pattern is particularly useful for implementing state machines or managing complex state-dependent logic, as it promotes cleaner code and improves maintainability in software development.
  • Using Factory Patterns in C# 12 to simplify A/B testing8/31/2024 4:40:36 AM. Find out how Ziggy Rafiq simplifies A/B testing with feature toggles in C# 12 by using Factory and Abstract Factory design patterns.
  • Understanding of Design Patterns8/30/2024 5:13:44 AM. Design patterns are essential in software development, divided into architectural and application/code-level patterns. Architectural patterns guide the high-level structure of software, ensuring compo
  • C# 12 Design Patterns: Factory and Abstract Factory8/29/2024 2:29:42 PM. By Ziggy Rafiq, discover how Factory and Abstract Factory design patterns simplify the creation of complex objects in C# 12.
  • Understanding of Domain Driven Design (DDD)8/29/2024 6:25:58 AM. Domain-driven design is a software development approach that closely aligns software models with business needs. It focuses on key concepts like Entities, Value Objects, Aggregates, and Aggregate Root
  • Singleton Pattern Caching in .NET C#8/26/2024 4:05:29 AM. Learn how to implement caching using this pattern to enhance memory management, ensure thread safety, and optimize performance in your applications.
  • Factory Design Pattern Real World Example8/21/2024 8:44:53 AM. In this article, you will see the real world example of Factory Design Pattern.
  • Exploring Advanced Design Patterns in .NET Core8/12/2024 9:20:27 AM. A deep dive into the latest trends in design patterns within the .NET Core ecosystem. Understand how these advanced patterns are shaping modern application development and architecture.
  • Advanced .NET Core Design Patterns with Code Examples8/12/2024 8:58:55 AM. This article delves into advanced design patterns in .NET Core, offering practical examples and code snippets. Learn how to implement these patterns to build scalable and maintainable applications.
  • Implementing the Mediator Pattern in .NET Core with MediatR8/6/2024 10:55:03 AM. Learn how to implement the Mediator pattern in .NET Core using the MediatR library. This article provides a detailed guide with code examples to help you understand and apply the Mediator pattern in y
  • Prototype Design Pattern7/18/2024 2:51:17 PM. Learn about the Prototype design pattern in Java, a creational pattern that enables object cloning for efficient instantiation. Explore cloneable interfaces, deep vs. shallow copying, and how to imple
  • The Unit of Work Pattern in C# for Modern Applications7/11/2024 8:17:00 PM. Explore the Unit of Work pattern in C#, essential for modern application development. Discover how it facilitates efficient database operations, manages transactions with Entity Framework, and enhance
  • How to use the Abstract Factory Pattern in C# with the Interface Pattern7/4/2024 10:16:09 AM. Learn how these design patterns improve flexibility, scalability, and maintainability in software development by exploring the Abstract Factory Pattern and Interface Pattern in C# with Ziggy Rafiq. Be
  • Consume API in Repository Design Pattern7/2/2024 8:57:02 AM. Learn how to effectively consume APIs using the Repository Design Pattern. This approach enhances code organization by separating data access logic into reusable repositories, promoting maintainabilit
  • Design Patterns and Advantages of Different Design Patterns7/1/2024 6:42:39 AM. Design patterns are recurring solutions to common problems in software design. They provide a template for solving issues in a particular context. The advantages of using different design patterns inc
  • Design Patterns with C# Examples6/19/2024 11:57:56 AM. This article explains design patterns, providing standard solutions for software design problems. It covers Creational, Structural, and Behavioral patterns with C# examples, including Singleton, Facto
  • Facade Design Pattern In C#6/13/2024 11:52:32 AM. C# Facade Pattern is used in hiding complexity of large systems and provide simpler interfaces. In this article, we will understand what Facade Pattern is and when and how to use a facade pattern in C
  • Repository Design Pattern In ASP.NET MVC6/13/2024 8:25:08 AM. Learn why direct database access complicates applications. Repository pattern in C# separates data access, improves testability, and supports flexible architecture changes. Follow a step-by-step guide
  • What are the Different Architectural Patterns?6/7/2024 10:34:45 AM. In this article, We will Explore the diverse landscape of architectural patterns, ranging from traditional monolithic designs to modern microservices and cloud-based architectures.
  • Abstract Factory Method Design Pattern With .NET Core6/5/2024 5:25:20 AM. Explore the use of design patterns in software development to solve common architectural problems. This guide demonstrates the Abstract Factory Design Pattern in C# with .NET Core, focusing on creatin
  • Implementing Repository Pattern And Dependency Injection In ADO.NET Using Generics In C#6/4/2024 9:49:21 AM. Learn how to implement design patterns in an object-oriented paradigm to create generic solutions. This guide covers a practical example where a web application interacts with a database using the rep
  • Mastering SOLID Principles in C# with Real-Time Examples5/29/2024 5:39:49 AM. Mastering SOLID principles in C# enhances software design by promoting maintainability, scalability, and robustness. These principles include Single Responsibility, Open/Closed, Liskov Substitution, I
  • Decorator Design Pattern In Dart/Flutter5/16/2024 9:27:33 AM. Decorator Design Pattern in Dart/Flutter, a flexible and reusable solution for extending functionality in object-oriented software. Learn through real-world examples, understand when to use it, and be
  • Facade Design Pattern In Dart/Flutter5/16/2024 9:24:03 AM. Explore the Facade Design Pattern, a GoF design pattern that simplifies interactions with complex systems. Learn its definition, when to use it, and how to implement it in Dart/Flutter with a practica
  • Abstract Class in .NET C#: Syntax, Usage and Example5/13/2024 5:01:47 AM. Abstract classes in .NET C# provide a blueprint for other classes to inherit from. They contain abstract methods that must be implemented by derived classes. Learn syntax, usage, and see examples to u
  • Composite Design Pattern Using Python5/6/2024 11:37:22 AM. A composite design pattern is a structural design pattern. It allows developers to create multiple nested objects of the same type to complete one single system hierarchy.
  • Adapter Design Pattern In Flutter4/25/2024 9:50:09 AM. Explore the Adapter Design Pattern, a popular structural design pattern in software development. Learn its definition, real-world examples, appropriate use cases, potential pitfalls, and more.
  • Singleton vs. Static Class in C# - Choosing the Right Approach4/17/2024 4:54:57 AM. Singleton and Static classes can only have one instance available in memory, and both classes can be used to maintain the global state of an application, however, there are many differences between th
  • Generic Repository Pattern With MVC4/12/2024 7:21:48 AM. The Generic Repository Pattern with MVC is a design approach where a generic interface is used to define CRUD operations, providing a flexible way to interact with data in an MVC application. It promo
  • SOLID Principles in C# for Employee Management Example Mastering4/11/2024 4:56:36 AM. SOLID principles are a set of design principles that help developers create maintainable, scalable, and flexible software. In this article, we'll explore each of the SOLID principles: Single Respo
  • Singleton Design Pattern With C# Sample4/8/2024 9:13:27 AM. In this article, we will Explore the Singleton Design Pattern in C# with a concise sample code demonstrating its implementation. Learn how to ensure a class has only one instance, providing global acc
  • What is a Sealed Classes in C#?3/28/2024 6:49:58 AM. In C#, the concept of inheritance plays a vital role in object-oriented programming (OOP). Developers often design class hierarchies to create a relationship between different types of objects. Howeve
  • Singleton Design Pattern In Flutter3/21/2024 9:25:49 AM. Learn how and when to use Singletons, implement them effectively, and explore their advantages and limitations. This article also includes a sample implementation using the shared_preferences package
  • Abstract Factory Design Pattern In Flutter3/21/2024 9:25:33 AM. Learn about the Abstract Factory design pattern in Flutter for creating platform-specific widgets. This pattern centralizes the creation of related objects, making it easier to manage and work with m
  • Factory Method Design Pattern In Flutter3/21/2024 9:25:05 AM. Factory Method design pattern! Learn how to create objects dynamically, improve code flexibility, and build platform-specific UIs (like buttons) with ease. Explore a practical payment gateway example
  • Introduction to Design Patterns in Flutter3/21/2024 9:12:16 AM. Explore the importance of design patterns in software development. Learn about different types of patterns, their benefits, and how they can improve code efficiency, readability, and maintainability.
  • How to Use Modular Pattern in Javascript3/20/2024 9:43:37 AM. In this article, we will learn how to leverage the Modular pattern in JavaScript for better code organization and scalability. By encapsulating code into separate modules, you can achieve separation o
  • Angular URL/Site Validation using Regular Expression and Bootstrap with Reactive Forms2/26/2024 4:26:28 AM. Steps to add validation for URL using the regex pattern in the angular application. I will explain steps to create a form with text input using the reactive forms in angular. This input field will on
  • Mobile Number Validation Using Angular and Bootstrap2/19/2024 9:48:49 AM. This article illustrates the implementation steps for 10-digit mobile number validation in an Angular app using reactive forms and Angular's phone number validation pattern. It guides us through s
  • Dependency Inversion Principle2/15/2024 6:57:31 AM. In this article, you will learn about the Dependency Inversion Principle. The Dependency Inversion Principle (DIP) in SOLID, outlined by Robert C. Martin, advocates that high-level modules should depe
  • Interface Segregation Principle2/15/2024 6:51:21 AM. In this article, you will learn about the Interface Segregation Principle. The Interface Segregation Principle (ISP) in SOLID, by Robert C. Martin, emphasizes coding according to specific interfaces r
  • Liskov Substitution Principle2/15/2024 6:41:43 AM. This article explains the Liskov Substitution Principle. The Liskov Substitution Principle (LSP), a key SOLID principle by Barbara Liskov, advocates seamless substitution of base class objects with de
  • React Design Pattern Series: Container/Presentational Pattern2/14/2024 7:17:48 AM. Learn how to master the Container/Presentational Pattern in React with our comprehensive guide. This design pattern separates view and application logic, promoting improved code organization, reusabil
  • Key Design Patterns in Software Engineering2/8/2024 6:48:50 AM. Discover essential design patterns such as Singleton, Factory, Abstract Factory, Unit of Work, Repository, and Command Query Responsibility Segregation (CQRS). Learn their applications and implementat
  • Understanding the Factory Pattern in .NET Core2/6/2024 6:54:59 AM. Explore the power of the Factory Pattern in software design, a creational pattern enhancing flexibility. Delve into a real-world example using .NET Core for a car manufacturing system.
  • React Design Pattern Series: Mastering Hooks Pattern2/5/2024 8:25:20 AM. This article delves into the transformative impact of React Hooks on state and side-effect management within functional components. The piece explores the "what" and "why" behind R
  • Node.js API Design with the Power of Design Patterns12/11/2023 5:56:40 AM. This article explores essential design patterns for robust Node.js API development. Covering Singleton, Factory, Middleware, Observer, and Repository patterns with code snippets, it emphasizes scalabl
  • Design Pattern with .NET Delegates11/15/2023 6:13:19 AM. Your article is detailed and well-structured, providing a clear explanation of implementing design patterns using generic delegates.
  • Design Patterns and Steps to Implement Singleton Class in C#11/13/2023 6:56:50 AM. Design patterns is the important features of object oriented programming. We need to ensure that only one object of a particular class is instantiated in Singleton design pattern in C#.
  • Clean Architecture and Command Pattern in ASP.NET Core API Implementation10/16/2023 8:25:42 AM. Explore a clean and efficient approach to building a robust ASP.NET Core Web API for a Car Company, using Clean Architecture and the Command Pattern. Simplify CRUD operations with a structured and mai
  • Efficient ASP.NET Core Web API Development with Clean Architecture, Flyweight Pattern10/11/2023 6:35:10 AM. the implementation of the CarCompany CRUD operations within an ASP.NET Core Web API, following the Clean Architecture principles, has been successfully structured. The separation of concerns into laye
  • How to decide when to use which design pattern?10/9/2023 4:26:10 AM. Design patterns are commonly used design practices in software engineering. This article explains when to use design patterns and which design patterns.
  • Building Scalable ASP.NET Core Web API with Onion Architecture and Abstract Factory Design Pattern10/6/2023 9:41:41 AM. This implementation serves as a foundation for building robust, modular, and scalable ASP.NET Core Web APIs. As the project evolves, additional features, security measures, and optimizations can be in
  • Design Patterns in Software Development9/18/2023 5:07:11 AM. In software development, design patterns are like architectural blueprints, guiding developers to create efficient and adaptable code. Structural patterns connect objects (e.g., Adapter, Decorator), C
  • Implementing CQRS And Mediator Patterns With ASP.NET Core Web API9/6/2023 6:22:29 AM. Get started with understanding the basics of CQRS and it's simple implementation using the MediatR Nuget package in ASP.NET Core Web API
  • Implementing Pipeline Design Pattern using C#7/18/2023 8:15:35 AM. Learn about the Pipeline design pattern and its implementation using C#. Discover how this powerful pattern breaks down complex tasks into modular steps for efficient and maintainable code.
  • Strategy Design Pattern in C#7/16/2023 5:04:48 AM. In this article we will learn what is a strategy design pattern and how we can implement it using C#. We will use a real world example of ImageProcessor to explain.
  • Design Patterns In C# .NET (2023)7/13/2023 9:38:49 AM. In this tutorial, learn everything about design patterns in C# and how to Implement design patterns using C# and .NET. Factory design pattern, Abstract Factory design pattern, Builder design pattern,
  • Design patterns and its types6/28/2023 6:40:40 AM. Design patterns for well-structured, maintainable software. Creational, structural, and behavioral patterns are discussed with real-life examples.
  • Embracing Event Sourcing in .NET 6: Design, Implementation, and Best Practices4/26/2023 10:27:51 AM.
  • Simplifying Object Creation - Using The Factory Design Pattern In Everyday Development3/15/2023 10:41:25 AM. In software engineering, a creational design pattern is a design pattern that deals with the process of object creation in a way that is both flexible and efficient. Creational design patterns provide
  • Design Patterns Simplified: Learn the Fundamentals of Design Patterns using C#1/26/2023 7:46:23 PM. Software design patterns are best practices for building reusable, efficient, and modern solutions to common problems.
  • Understanding Design Patterns10/18/2022 9:26:48 AM. In this article, you will learn about Design Patterns.
  • Implementing Repository Pattern Along With Dependency Injection8/29/2022 4:55:56 AM. In this article topics covered are Repository Pattern, Dependency Injection, Ajax call.
  • Microservice Architecture, Its Design Patterns And Considerations7/25/2022 7:11:33 PM. This article is about microservices architecture and its comparison with monolith, as well as design patterns that are important, and benefits and drawbacks.
  • Symmetrical Repository Pattern - Data Access Made Easy In .NET5/29/2022 3:39:55 AM. In this article, I will describe an interesting pattern that can be implemented to make it trivial to perform CRUD/RESTful data access across a full-stack .net system, with this technique that abstrac
  • API Gateway Desing Pattern In Microservices8/10/2021 4:15:29 PM. In this article, you will learn about Microservices Design using the Gateway Pattern.
  • Sidecar Design Pattern In Microservices8/10/2021 4:13:56 PM. In this article, you will learn about Microservices Design using Sidecar Pattern.
  • Microservices Architectures6/28/2021 1:29:42 PM. In this article,, you will learn about Microservices Architectures.
  • Quick Start On Design Pattern In C#6/21/2021 3:31:53 AM. In this article, you will learn about Design Patterns and it's benefits.
  • Structuring JavaScript Code Using Design Patterns6/5/2020 5:52:24 AM. In this article you will learn about structuring JavaScript code using Design Patterns.
  • Builder Design Pattern5/6/2020 1:44:28 AM. As we know there are 3 types of design pattern categories, Creational, Structural, and Behavioural. The Builder design pattern falls under a creational design pattern, as it deals with creating object
  • Design Patterns In .NET5/5/2020 9:35:07 AM. So basically, what are design patterns? We can define design patterns as proven techniques to achieve certain tasks. They give us a basic template to design our application using templates that have p
  • Adapter Design Pattern5/3/2020 6:51:40 PM. This article shows how to convert the interface of a class into another interface clients expect. The adapter lets classes work together that couldn't otherwise because of incompatible interfaces.
  • Decorator Design Pattern5/1/2020 7:12:02 PM. The decorator pattern is a design pattern that allows behaviour to be added to an individual object, dynamically, without affecting the behaviour of other objects from the same class
  • Composite And Builder Design Pattern With A Tree4/26/2020 10:14:40 PM. In this article, we cover what is the composite pattern, and what is this useful for?
  • Increase Performance with an Object Pool or Why Singleton May Cause Performance Issues3/12/2020 11:45:30 PM. When creating a Singleton, think about if an Object Pool should be used instead.
  • Software Design Principles2/17/2020 11:06:21 PM. In this article, you will learn about Software Design Principles.
  • Don't Repeat Yourself (DRY) - Part Two2/14/2020 9:15:14 AM. In this article, we will be discussing one of the DRY issues - Repeated Logic - and some of the possible solutions to address this issue.
  • Design Patterns Series - Chapter One - Introduction1/15/2020 7:30:08 PM. This article mainly focuses on design patterns' actual use in real time programming problems, types and sub-types of design pattern.
  • NULL Object Design Pattern9/19/2019 1:31:43 AM. In this video, we will talk about null object design pattern and will see how we can abstract away our client code from null checks across the entire application.
  • Design Patterns - Singleton 8/4/2019 9:07:02 AM. In this article, I am explaining about the singleton design pattern and its common application areas. Singleton is one of the design patterns in the Gang of Four (GoF) design patterns.
  • Design Patterns - Factory8/4/2019 9:04:25 AM. In this article, I am explaining the Factory design pattern from the Gang of Four (GoF) design patterns
  • Builder Design Pattern Using C#4/18/2019 8:23:49 AM. In this article, we will understand the Builder Design Pattern, when we should actually use it, and a practical example along with the disadvantages and advantages of it.
  • Singleton Pattern In C#3/24/2019 10:51:49 AM. In this article, you will learn about the singleton pattern in C#.
  • Learn Design Patterns - Factory Method Pattern2/26/2019 2:47:56 AM. In this article you will learn the Factory Method Pattern in detail.
  • Design Patterns: Introduction2/26/2019 12:29:41 AM. This article is the beginning of a new series called Lean Design Patterns with C#.
  • Specification Pattern In C# - Composite Specifications12/3/2018 8:38:19 AM. This article is a continuation of my first article on Specification Pattern in C#. I recommend that you read it for a better understanding of background concepts. In the first part of this article, I