---
title: "#factory-design-pattern articles | Hashnode"
description: "Explore 77 articles tagged #factory-design-pattern on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/factory-design-pattern"
---

Tag

# #factory-design-pattern

77 posts · 2 followers

[Onkesh Gupta](https://hashnode.com/@onkeshgupta) · [Sep 8](https://hashnode.com/posts/design-patterns-simplified-2-factory-method/6aa007b56442f32e071568a5)

### [Design Patterns Simplified #2: Factory Method](https://onkeshgupta.hashnode.dev/design-patterns-simplified-2-factory-method?utm_source=hashnode&utm_medium=feed)

Why does my checkout code have five if/else blocks just to pick a payment gateway?

9 min read · [onkeshgupta.hashnode.dev](https://onkeshgupta.hashnode.dev/design-patterns-simplified-2-factory-method?utm_source=hashnode&utm_medium=feed)

[Oluwaseyi Fatunmole](https://hashnode.com/@foluwaseyi) · [Jan 27](https://hashnode.com/posts/how-the-factory-and-abstract-factory-design-patterns-work-in-flutter/6978f477116625d0304ed264)

### [How the Factory and Abstract Factory Design Patterns Work in Flutter](https://freecodecamp.org/news/how-the-factory-and-abstract-factory-design-patterns-work-in-flutter?utm_source=hashnode&utm_medium=feed)

In software development, particularly object-oriented programming and design, object creation is a common task. And how you manage this process can impact your app's flexibility, scalability, and maintainability. Creational design patterns govern how...

13 min read · [freecodecamp.org](https://freecodecamp.org/news/how-the-factory-and-abstract-factory-design-patterns-work-in-flutter?utm_source=hashnode&utm_medium=feed)

[Oluwaseyi Fatunmole](https://hashnode.com/@foluwaseyi) · [Jan 23](https://hashnode.com/posts/how-to-use-the-singleton-design-pattern-in-flutter-lazy-eager-and-factory-variations/69740b7bc3e68b8de44a179f)

### [How to Use the Singleton Design Pattern in Flutter: Lazy, Eager, and Factory Variations](https://freecodecamp.org/news/how-to-use-the-singleton-design-pattern-in-flutter-lazy-eager-and-factory-variations?utm_source=hashnode&utm_medium=feed)

In software engineering, sometimes you need only one instance of a class across your entire application. Creating multiple instances in such cases can lead to inconsistent behavior, wasted memory, or resource conflicts. The Singleton Design Pattern i...

11 min read · [freecodecamp.org](https://freecodecamp.org/news/how-to-use-the-singleton-design-pattern-in-flutter-lazy-eager-and-factory-variations?utm_source=hashnode&utm_medium=feed)

[Mohammad Shariful Islam](https://hashnode.com/@shariful-islam) · [Jan 20](https://hashnode.com/posts/how-factory-and-strategy-patterns-work-together/696f648b60215cb6eb35c5ef)

### [How Factory and Strategy Patterns Work Together](https://shariful-islam.hashnode.dev/how-factory-and-strategy-patterns-work-together?utm_source=hashnode&utm_medium=feed)

Understanding the Synergy Between Factory and Strategy Design Patterns in C#

4 min read · [shariful-islam.hashnode.dev](https://shariful-islam.hashnode.dev/how-factory-and-strategy-patterns-work-together?utm_source=hashnode&utm_medium=feed)

[Mohammad Shariful Islam](https://hashnode.com/@shariful-islam) · [Jan 20](https://hashnode.com/posts/factory-design-pattern/696f3cde6f79b528832d7694)

### [Factory Design Pattern](https://shariful-islam.hashnode.dev/factory-design-pattern?utm_source=hashnode&utm_medium=feed)

Simplify Object Creation in C# with the Factory Design Pattern

3 min read · [shariful-islam.hashnode.dev](https://shariful-islam.hashnode.dev/factory-design-pattern?utm_source=hashnode&utm_medium=feed)

[Kartik Mehta](https://hashnode.com/@mehtaaaaaah) · [Jan 10](https://hashnode.com/posts/the-day-15-files-became-one/69621eb8fb014a5ee98b89c7)

### [The Day 15 Files Became One](https://writer.mrmehta.in/the-day-15-files-became-one?utm_source=hashnode&utm_medium=feed)

Learn the Factory Pattern in Rust through a real-world story. Transform messy if-else chains into clean, extensible, maintainable code.

25 min read · [writer.mrmehta.in](https://writer.mrmehta.in/the-day-15-files-became-one?utm_source=hashnode&utm_medium=feed)

[Jeetjyoti Deka](https://hashnode.com/@Jeetjyoti) · [Jan 10](https://hashnode.com/posts/the-factory-method-pattern-in-go/696274a4c514d731bb512fdf)

### [The Factory Method Pattern in Go](https://jeet-blogs.hashnode.dev/the-factory-method-pattern-in-go?utm_source=hashnode&utm_medium=feed)

Creating Objects Without Tight Coupling

8 min read · [jeet-blogs.hashnode.dev](https://jeet-blogs.hashnode.dev/the-factory-method-pattern-in-go?utm_source=hashnode&utm_medium=feed)

[Kartik Gupta](https://hashnode.com/@thebackendtechie) · [Jan 7](https://hashnode.com/posts/design-patterns/695dcf014adf7034f53526e7)

### [Design Patterns](https://backendtechie.hashnode.dev/design-patterns?utm_source=hashnode&utm_medium=feed)

1\. Strategy Pattern When to Use: Multiple algorithms or behaviours for the same task Need to switch logic at runtime Want to avoid big if-else or switch statements Example: Payment System ❌ What NOT to do if (type.equals("CARD")) { // card ...

4 min read · [backendtechie.hashnode.dev](https://backendtechie.hashnode.dev/design-patterns?utm_source=hashnode&utm_medium=feed)

[Bennett](https://hashnode.com/@bennett1999) · [Dec 24, 2025](https://hashnode.com/posts/factory-builder/694bc1fa110693e694cdc844)

### [Lesson 19: 工廠模式 與 建造者模式](https://blog.bennett1999.com/factory-builder?utm_source=hashnode&utm_medium=feed)

深入解析工廠模式與建造者模式，從依賴注入、OCP 到 Strategy 與 Factory 的實戰關係，一次釐清 Simple Factory、Factory Method 與 DI Container 的角色差異，並結合 Laravel Manager、Eloquent Builder，幫助後端工程師理解設計

5 min read · [blog.bennett1999.com](https://blog.bennett1999.com/factory-builder?utm_source=hashnode&utm_medium=feed)

[Alisha Kausheen](https://hashnode.com/@AlishaKausheen) · [Dec 19, 2025](https://hashnode.com/posts/factory-method-pattern/69453c1691bd08c12f14870e)

### [Factory Method Pattern](https://alishakausheen.hashnode.dev/factory-method-pattern?utm_source=hashnode&utm_medium=feed)

Stop Using new Everywhere At some point, every codebase reaches this stage if (type.equals("CAR")) { return new Car(); } else if (type.equals("BIKE")) { return new Bike(); } else if (type.equals("TRUCK")) { return new Truck(); } It works...

3 min read · [alishakausheen.hashnode.dev](https://alishakausheen.hashnode.dev/factory-method-pattern?utm_source=hashnode&utm_medium=feed)
